From: Dave Thomas Date: 2001-11-24T12:22:59+09:00 Subject: [ruby-talk:26287] Re: [OT] Re: KDE or GNOME curiosity question... Edward Diener writes: > > Ruby and many other languages with GC (Java is in the same boat) allow > > resource finalization when the object is "destroyed". > > I know what the workaround is generally for these RAAI situations. It is > to design a member function that essentially says that the object will > no longer be used and therefore resources can be released when the > member function is called. Then it is up to the user of that object to > remember to call that member function when he is finished using that > object. To say that I regard this as inelegant and a poor language > design is an understatement. Perhaps you could post one of your current Ruby applications that illustrates the problem, and we might be able to help you out. I have to say that this isn't an issue that's ever bitten me in Ruby, but if you've come across a specific case I'd love to see it. Regards Dave