>>>>> "P" == Paul Brannan <pbrannan / atdesk.com> writes:

P> Even if allocate is used, this won't work.  The lookup for the class is
P> failing before allocate is called.

 Well, if I've well understood he want that Marshal use the same algorithm
 than ruby when it find a constant name.

 Actually marshal just look is the constant is defined, when ruby can call
 #const_missing when he write `M.allocate'

P>   class Foo
P>     SOME_CONSTANT = 1
P>     def foo
P>       return SOME_CONSTATN
P>     end
P>   end

P> my code will no longer break, but will silently do the wrong thing.

 Not understood, sorry


Guy Decoux