Accessing objects memory address in ruby..???

Posted by levirg on Stack Overflow See other posts from Stack Overflow or by levirg
Published on 2010-03-08T15:07:52Z Indexed on 2010/03/09 8:36 UTC
Read the original article Hit count: 148

Filed under:

hey Folks,

Is there any way in ruby to get the memory address of objects..

say..

(i = 5) is that possible to get the mem address of that object 5..

I have been trying to get this over some time..,

Any answer would be really appreciated...

thanks,

Regards levirg

© Stack Overflow or respective owner

Related posts about ruby