[Nitro] Concerns over Og mandating the form of initialize

George Moschovitis george.moschovitis at gmail.com
Wed Apr 13 05:27:47 EDT 2005


> I 'll investigate.

Not much to investigate:

ri Class#allocate

--------------------------------------------------------- Class#allocate
     class.allocate()   =>   obj
------------------------------------------------------------------------
     Allocates space for a new object of _class_'s class. The returned
     object must be an instance of _class_.


so i replaced klass.new with klass.allocate and the initialize method
is not called.
the object gets correctly restored by og_read, and there are no
restirction for your initialize method. What do you think James? I
think this solves your problem nicely.

regards,
George.


-- 
http://nitro.rubyforge.org
http://www.joy.gr




More information about the Nitro-general mailing list