On Wed, May 30, 2001 at 06:14:24PM +0900, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:16025] Logical values in Ruby?" > on 01/05/30, Juha Pohjalainen <voidjump / nic.fi> writes: > > |Has anyone done Logical values (that is true, false or unknown) in > |Ruby? I see there is TrueClass (and only one instance of it; true) > |and FalseClass (and only one instance of it; false), but I don't > |see see UnknownClass (or only one instance of it; unknown). > | > |Any ideas? Or implementations already? > > How about using `nil' for that purpose? > > matz. I thought of that too, but nil evaluates false. And then everyting else (but nil and false) evaluates true. But that shall do for now. Thank you! -Jippo -- __________________________________________________________________ [ pub 1024/951AFAF5 1995/12/12 Juha Pohjalainen <jmp / iki.fi> ] [ fingerprint 41 56 7F F9 8E EC 16 35 BB 42 EF A7 DF 19 FA 31 ] [__ http://www.iki.fi/jmp/ ________________ GSM +358 40 570 1179 __]