From: Florian Gross Date: 2004-08-09T23:31:21+09:00 Subject: Re: stupid question: Object#name Benny wrote: >>>btw. why didn't matz make Class and Object be the same thing? >>Err... Because they are not the same concept. > if they behave mostly the same way in ruby > it might be reflected behind the scenes. > are the differences in the abilities of Object and > Class so big that they legitimate hard distinction in the > interpreter? or are we loosing something if Object and Class > is based on the same fundamentals apart from syntactical restrictions > and the separated name spaces (constants vs. symbols)? It is indeed possible to store Classes in regular variables, because they are just regular objects: foo = String foo_obj = foo.new # => "" foo_obj.class == foo # => true foo_obj.class == String # => true bar = Class.new(String) bar_obj = bar.new # => "" bar_obj.class == bar # => true > kind regards, > benny More regards, Florian Gross