From: "David A. Black" Date: 2009-01-14T23:14:18+09:00 Subject: Re: Why do true and false have separate classes Hi -- On Wed, 14 Jan 2009, Ruby Rabbit wrote: > Jason Roelofs wrote: >> On Wed, Jan 14, 2009 at 8:26 AM, Ruby Rabbit >> wrote: >>> >>> Just wondered what the thought behind this was? >>> -- >>> Posted via http://www.ruby-forum.com/. >>> >>> >> >> It's only the core philosophy of Ruby: You have objects send messages >> to those objects. >> If there weren't a TrueClass and FalseClass, what else would true and >> false be? >> >> Jason > > I would assume one class named like "Boolean". > > TAke for example numbers -- there is only one Fixnum class which can > have many values. Similarly i would assume one Boolean class with values > true and false. Google for: ruby "boolean class" This is a borderline perma-thread. David -- David A. Black / Ruby Power and Light, LLC Ruby/Rails consulting & training: http://www.rubypal.com Coming in 2009: The Well-Grounded Rubyist (http://manning.com/black2) http://www.wishsight.com => Independent, social wishlist management!