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