From: John Wilger Date: 2005-12-01T12:36:51+09:00 Subject: Re: If like smalltalk On 11/30/05, Laza wrote: > You can define these methods in TrueClass and FalseClass so you don't > polute the Object class. I had thought about doing it that way, but then you could only use that syntax on actual instances of TrueClass and FalseClass -- if statements are quite often applied to arbitrary objects since, IIRC, everything other than FalseClass and NilClass is the same as true for that purpose. -- Regards, John Wilger http://johnwilger.com ----------- Alice came to a fork in the road. "Which road do I take?" she asked. "Where do you want to go?" responded the Cheshire cat. "I don't know," Alice answered. "Then," said the cat, "it doesn't matter." - Lewis Carrol, Alice in Wonderland