From: Erik Hollensbe Date: 2008-08-25T05:04:11+09:00 Subject: Re: remove_const, Kernel.load, and already instantiated objects Erik Hollensbe wrote: > It's ugly but it's precise, and will make the old objects complain > loudly until ruby's ready to garbage collect them, making things easier > for you to debug and manage. This will be most evident if you do any > kind of anonymous routine management and closures get involved heavily. I should probably note that code in it's current state would keep objects around that weren't intended to stay around otherwise (that is, they would be GC'd by ruby before you did any reloading), so you'd have to implement some form of hackneyed destructor as well. -Erik -- Posted via http://www.ruby-forum.com/.