Chris Maden, text nerd <URL: http://crism.maden.org/ >
LIVE FREE: vote for Gary Johnson, Libertarian for President.
<URL: http://garyjohnson2012.com/ > <URL: http://lp.org/ >
GnuPG fingerprint: DB08 CF6C 2583 7F55 3BE9 A210 4A51 DBAC 5C5C 3D5E
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
As far as i know, ruby use memory location to generate object’s id,
normally any dynamic objects(runtime generate objects) will have
different object_id, for example “foo”.object_id not equal with
“foo”.object_id. But, any object like number, true, false ,nil and
symbol all have fixed object_id
As far as i know, ruby use memory location to generate object’s id, normally any
dynamic objects(runtime generate objects) will have different object_id, for
example “foo”.object_id not equal with “foo”.object_id. But, any object like
number, true, false ,nil and symbol all have fixed object_id
Although this is an implementation detail you’d be I’ll advised to
rely on - on my rubinius install for example the object id of nil is
26