>>>>> "t" == ts <decoux / moulon.inra.fr> writes: >>>>> "D" == David Leal <david / jazznet.pt> writes: D> define_finalizer( obj, proc { |id| _id2ref( id ).close } t> You don't need it, ruby will try to close the object when it's garbage t> collected. I've forgotten to say if it's an IO object Guy Decoux