On Apr 10, 2006, at 11:07 AM, Tom A. wrote:
When I call
I actually call the
Not exactly. You call Object::new. Object::new calls initialize
after allocating a new instance.
so there is an implied connection between new() and initialize()?
There is an explicit connection between Object::new and
Object::new is implemented something like this, but in C:
def self.new(*args, &block)
obj = allocate
obj.send(:initialize, *args, &block)
Historically is there some reason why we didn’t just stick with the
or did I miss something.
That would be an instance method. Object::new is a class method.
Eric H. - [email protected] - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant