Ned Konz <ned / bike-nomad.com> writes: > Part of the problem is that your create_finalizer is an instance > method. Which means that self is the object itself. Which also means > that the closure has a reference to self. It instead should probably > be a class method. It works! Thanks for the tip. Now, the question is: beside 1) in ruby finaliser, one cannot add a reference to the object, 2) it cannot be explicitly called like C++'s destructor. are there any functionality differences between ruby's finaliser and C++/Java destructor? TIA, YS.