On 4/20/06, Peter Ertl <pertl / gmx.org> wrote:> $ irb>> irb(main):001:0> true.class> => TrueClass> irb(main):002:0> false.class> => FalseClass> irb(main):003:0> 0.class> => Fixnum>> 0 is not a boolean, so interpretation is up to the language.>> Most common is 0 := false, 1 := true as you already know.> I think in Visual Basic it is 0 := false, -1 := true> Also possible 0 := false, not 0 := true
And the argument against 0 being false is shell scripts, where 0 is true.
-austin--Austin Ziegler * halostatue / gmail.com               * Alternate: austin / halostatue.ca