2008/9/17 Brian Candler <b.candler / pobox.com>:
> I wondered if someone can explain the following behaviour to me.

There is no guarantee that all collectible objects are indeed
collected during a GC run.  GC is not really deterministic - at least
from the user's point of view.

> For some reason, in the following code the instances of object Foo are
> prevented from being garbage collected.

No, they are not collected.  This is something different!

Kind regards

robert

-- 
use.inject do |as, often| as.you_can - without end