From: SpringFlowers AutumnMoon Date: 2007-09-25T09:40:49+09:00 Subject: Re: object_id 1, 2, 3 Rob Biedenharn wrote: > I saw a flowchart somewhere (online?) that showed how the least- > significant bits were used by the interpreter in the implementation > of some "objects" which were both common and immutable (TrueClass, > FalseClass, NilClass, Fixnum). > > The LSB=1 is Fixnum (hence the object_id of n would be (n<<1)|0x01 in > the underlying C code). you mean the 2002, 2004, 20002, 20004, etc are all for other immutable objects? what are they i wonder... the negative numbers have their own negative object_id's. -- Posted via http://www.ruby-forum.com/.