Yukihiro Matsumoto
10/7/2008 4:25:00 PM
Hi,
In message "Re: Difference between Foo = Class.new and class Foo"
on Wed, 8 Oct 2008 00:32:41 +0900, Brandon Dimcheff <bdimchef@wieldim.com> writes:
|I don't think I'm doing conceptually different things below. I'm
|looking at creating and defining classes, not creating objects from
|those classes. I'm attempting to create a class called Foo in both
|cases. The first time, I use the class keyword. The second time, I
|call Class.new. It seems that using the class keyword doesn't call
|Class's metaclass's "new" method, while Class.new (obviously) does.
Now I know what you meant. Literals and expressions do not go through
"new" method as a general rule.
matz.