Here's an early attempt to get Marshalling working for simple extensions of the builtin classes. I believe that Ruby in these cases is simply looking for an extended builtin classes that doesn't define its own marshalling, such as is the case in FlashHash in Rails and in the MyHash sample I sent earlier.

With this patch, MyHash marshals and unmarshals correctly. There's still some bits missing from marshal.c, and I haven't applied this to the other appropriate builtins, but it's a start.

--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ jruby.sourceforge.net
Application Architect @ www.ventera.com

Attachment: early_userclass_marshalling_fix.patch
Description: Binary data

Reply via email to