Alex Young
7/11/2006 2:41:00 PM
Yukihiro Matsumoto wrote:
> Hi,
>
> In message "Re: Object IDs"
> on Tue, 11 Jul 2006 23:10:15 +0900, Alex Young <alex@blackkettle.org> writes:
>
> |a) Are object id's ever reused within the life of a Ruby process?
>
> They are recycled by garbage collector.
Thanks... That explains a minor oddness I'm seeing. Are they recycled
before the finalizers are called?
> |b) Are object id's unique across the whole Ruby process, or only within
> |a given context?
>
> They are unique in the certain point of the execution.
I thought they would be, just wanted to be sure :-)
Thanks,
--
Alex