From: Martin DeMello Date: 2008-08-23T13:04:25+09:00 Subject: Re: remove_const, Kernel.load, and already instantiated objects On Fri, Aug 22, 2008 at 6:47 PM, Brent Dillingham wrote: > > The only thing I can think of is to try to finagle a way to copy existing > objects into the newly defined Class, using serialization or something > crazy, but that sounds really messy and probably not worth it. Not *that* messy - you basically walk the object space, marshal everything, reload the class and unmarshal it. Works fine as long as you don't want to restore closures. martin