From: Stephane Wirtel Date: 2007-03-01T17:50:15+09:00 Subject: Re: Writing a destructor is possible ? Guillaume Nargeot wrote: >> Please look in the archives; this was just discussed last week. >> >> In short, you can write a finalizer, but you'll never use it because >> it may not be called. If you must release resources when your object >> is destroyed, ensure that you provide a block form (like File.open). >> >> -austin > > Sorry, but I don't know were to find these archives... I thought I found > them on the internet, but I didn't find anything into them by searching > for "destructor" or "finalizer". Even by filtering this newsgroup topics > with these words I can't find anything since the 2007-02-16. > > Can you tell me where I can find this discussion please ? With google, ObjectSpace.define_finalize