From: David Alan Black Date: 2001-12-31T21:48:09+09:00 Subject: [ruby-talk:29847] Re: && vs. and Hello -- On Mon, 31 Dec 2001, Stefan Schmiedl wrote: > David Alan Black (2001-12-31 21:30): > > > (Hmmm... Playing around with this I'm mildly surprised that "true && > > nil" is nil, rather than false.) > > well, "true and iDontKnow" gives "iDontKnow" and not "false". Actually: irb(main):031:0> true && iDontKnow NameError: undefined local variable or method `iDontKnow' for # :-) > you just are not sure with nil, whereas you have decided with > true or false. I thought nil's boolean value was false, and that: (a true thing) && (a false thing) would evaluate to false. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav