From: David Naseby Date: 2004-05-19T12:45:35+09:00 Subject: Re: Zero is true ... whoda thunk? >-----Original Message----- >From: David Naseby [mailto:david.naseby@eonesolutions.com.au] >> >>Got milk? >> >>What's your answer, yes or no? >> >>No, of course. > >I'd prefer to encode this as: > > if got_milk? ... end > >where > > def got_milk? > @milk_volume.zero? Bugger. I mean !@milk_volume.zero? of course. So this whole problem could be avoided by making 0==false, thus proving your point. THIS is why I don't post normally.... > >David >http://homepages.ihug.com.au/~naseby/ >