From: ts Date: 2005-04-13T20:22:21+09:00 Subject: Re: ability to run finalizers at a given point of a program? >>>>> "G" == Guillaume Cottenceau writes: G> After a second thought, I then think that it reduces a lot the use of G> the finalizer, because it means that it cannot do anything related to G> the instance of the object being destroyed, This is worst that you think svg% cat b.rb #!/usr/local/bin/ruby obj = [] ObjectSpace.define_finalizer(obj, proc { p "before"; p obj; p "after" }) svg% svg% b.rb "before" svg% Guy Decoux