From: Jim Freeze Date: 2002-03-29T23:23:28+09:00 Subject: Re: Now that's surprising. On Fri, Mar 29, 2002 at 11:16:43PM +0900, Chris Gehlker wrote: > Does anyone else think that the following little program is an instance of > Ruby violating the POLS by producing nil? I can fix it by uncommenting the > commented line but I don't think that that should be required. > > def truthTest > result = true > result = false unless result > # return result > end > > p truthTest > How about: def truthTest r = true r = false unless r r end puts truthTest #=> true -- Jim Freeze atto: 1e-18 = one quintillionth parsec: 3.258 light-years: 3.258 * 186000 * 364 * 24 * 3600 * 5280 * 12 attoparsec: atto * parsec =~ 1.20 inch My height: 62 inches / 1.2 = 51.7 attoparsecs ~