From: ts Date: 2004-10-19T00:29:30+09:00 Subject: Re: calling define_finalizer from within C? >>>>> "A" == Andres Salomon writes: A> It seems like it needs to be outside of the class, for some reason. The A> following works: write it like this A> x = Foo.new A> include ObjectSpace A> define_finalizer(x, proc { |a| puts 'outside Foo' }) define_finalizer(x, proc { |a| puts "outside Foo #{x}" }) Guy Decoux