Re: unhead

Ian Phillipps <[email protected]>
Newsgroups gmane.comp.lang.perl.fun
Message-ID <[email protected]>
On Sat, 25 Sep 2004 at 19:09:31 -0700, Randal L. Schwartz wrote:
> >>>>> "Keith" == Keith C Ivey <[email protected]> writes:

> Well, it also presumes that "!" returns literally 0 and 1.  I've
> never seen a promise of that in any docs.

> I think Perl6 should return "42" for true, just to keep people
> from making that presumption.

There's an implicit promise, which used to be more clearly stated, in
that the '!' operator is inherited from 'C'. In that language, the
behaviour is indeed specified.  From the perl manual, version 1:

    Since perl expressions work almost exactly like C
    expressions, only the differences will be mentioned here

And, yes, I know that it returns '' for false.
Not much fun, sorry. But I can't out-golf Eugene...

Ian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.