From: Austin Ziegler Date: 2007-03-01T11:43:57+09:00 Subject: Re: Writing a destructor is possible ? On 2/28/07, Guillaume Nargeot wrote: > I would like to know if it is possible to write (for a class) something like > a destructor (like you do with C++), or something equivalent. > If it is not possible, how can I do to perform some operations on the > deletion of my object ? 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 -- Austin Ziegler * halostatue@gmail.com * http://www.halostatue.ca/ * austin@halostatue.ca * http://www.halostatue.ca/feed/ * austin@zieglers.ca