Eric Roode wrote:

> Glenn Linderman wrote:
> >Eric Roode wrote:
> >
> >> 1. You don't say in your RFC, but I'm guessing, that a null value
> >> evaluates to false in a boolean context. Correct?
> >
> >I would expect it to be considered false.  Logical expressions involving
> >NULL are defined to be "undefined", actually, which is not considered true.
>
> Hmmm. So:
>
>     $a = null;
>     $b = ($a == 42);
>     print defined($b)? "defined" : "not defined";
>
> would print "not defined", maybe?

It should.

> [snip]
> >    $NULL = "NULL";
> >
> >could be the default; and $NULL could be set to anything desired to be the
> >stringization for NULL.  Setting $NULL to NULL would be special, and
> >equivalent to the $NULL = "NULL".  Setting $NULL to undef could result in
> >warnings during stringization of NULL.
>
> And setting $NULL=null could result in infinite loops :-)

I dealt with that above to avoid the loops.  It is equivalent to $NULL = "NULL";

--
Glenn
=====
Even if you're on the right track,
you'll get run over if you just sit there.
                       -- Will Rogers





____________NetZero Free Internet Access and Email_________
Download Now     http://www.netzero.net/download/index.html
Request a CDROM  1-800-333-3633
___________________________________________________________

Reply via email to