From: Thomas Hurst Date: 2002-10-15T07:29:04+09:00 Subject: Re: 0 is true - how'bout "least surprises" ;-P * Szabolcs Szasz (sz@szasz.hu) wrote: > Er... Not that I couldn't fix my scripts (my server monitor just > stopped alerting me of a recent downtime exactly for this mistake...), > but, Matz, is "if 0" being the same as "if true" your final word on > this? ;-) Better to say "everything is true except nil and false" rather than "everything is true except nil, false, zero (integer, not float), and the empty string, except when the objects happen to be hidden behind a proxy or alternative implementation". No? -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - Everbody wants a pain shot at the same time.