On Sat, Sep 25, 2004 at 07:09:31PM -0700, "Randal L. Schwartz" <[EMAIL PROTECTED]>
wrote:
> Well, it also presumes that "!" returns literally 0 and 1. I've
> never seen a promise of that in any docs.
$ perl -we'use overload "!"=>sub{"whoa"}; print !bless{}'
whoa
> I think Perl6 should return "42" for true, just to keep people
> from making that presumption.
overload notwithstanding, it's a useful presumption.
In any case, it doesn't return literally 0; it returns PL_sv_no, which
has a numeric value of 0 and a string value of "".