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 ___________________________________________________________
- Re: RFC 263 (v1) Add null() keyword and fundamental ... Damian Conway
- Re: RFC 263 (v1) Add null() keyword and fundamen... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... Eric Roode
- RE: RFC 263 (v1) Add null() keyword and fundamental data ... Konovalov, Vadim
- Re: RFC 263 (v1) Add null() keyword and fundamental ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamen... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... Eric Roode
- Re: RFC 263 (v1) Add null() keyword and fundamental ... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fundamen... Russ Allbery
- Re: RFC 263 (v1) Add null() keyword and fundamen... John Porter
- Re: RFC 263 (v1) Add null() keyword and fundamental ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamental ... Buddha Buck
- Re: RFC 263 (v1) Add null() keyword and fundamen... Glenn Linderman
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... John Porter
- Re: RFC 263 (v1) Add null() keyword and fundamental ... Tom Christiansen
- Re: RFC 263 (v1) Add null() keyword and fundamental data ... Tom Christiansen
- RE: RFC 263 (v1) Add null() keyword and fundamental data ... David Grove