On Thu, 31 Oct 2002, ts wrote:

G> a> i found quite a few references that claim the finalizing proc may not
G> a> contain references to the object in question, since it would therefore,
G> a> never be candidate for gc...  my experiements show this to be true,

thus, there is no way to impliment the following logic :

if being_garbage_collected
  self.free self.a_resource
end

this seems unfortunate, though i have not yet come across a definite need for
it in ruby, i have used a similar technique in perl before to decrement a
counter in a multi-threaded application

-a

-- 

 ====================================
 | Ara Howard
 | NOAA Forecast Systems Laboratory
 | Information and Technology Services
 | Data Systems Group
 | R/FST 325 Broadway
 | Boulder, CO 80305-3328
 | Email: ahoward / fsl.noaa.gov
 | Phone:  303-497-7238
 | Fax:    303-497-7259
 ====================================