Force_recycle

> can someone confirm that rb_gc_force_recycle would do the job?
> I'm quite aware that this is 'evil'...

Nobu just told you "no". There are three people who, if they tell you
something about Ruby and its garbage collection, I would trust beyond
the source: Matz, ts, and Nobu.

-austin
--
Austin Ziegler * halostatue@gmail.com
               * Alternate: austin@halostatue.ca

Ok, perhaps I (wanted to) misinterpret Nobu's 'no'. I thought this
refers to the accessibility from within ruby.

Simon

Hi,

At Wed, 10 Aug 2005 23:48:00 +0900,
Kroeger Simon (ext) wrote in [ruby-talk:151506]:

Ok, perhaps I (wanted to) misinterpret Nobu's 'no'. I thought this
refers to the accessibility from within ruby.

Sorry, I was too terse.

The reason why it is not accessible from ruby is that it's too
dangerous; it can cause crash easily if it were possible.

Consider:

  x = Foo.new
  GC.force_recycle(x)
  x.inspect

Accessing recycled object would raise "terminated object"
exception if you're lucky.

···

--
Nobu Nakada