Object IDs

A

Alex Young

A couple of quick questions:

a) Are object id's ever reused within the life of a Ruby process?

b) Are object id's unique across the whole Ruby process, or only within
a given context?
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: Object IDs"

|a) Are object id's ever reused within the life of a Ruby process?

They are recycled by garbage collector.

|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.

matz.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,208
Messages
2,571,082
Members
47,683
Latest member
AustinFairchild

Latest Threads

Top