From: RichardOnRails Date: 2009-12-22T07:15:14+09:00 Subject: Re: Ruby's implementation of Fixnum-assignment On Dec 21, 3:55 pm, Marnen Laibow-Koser wrote: > RichardOnRails wrote: > > On Dec 21, 12:26 pm, Robert Klemme wrote: > >> > 3. Object_id's of Bignum's close to the boundaries of Fixnum's bear no > >> > value, left shift it with "1" padding, and make that current > >> instance variable like "@a") has an object id. Object id is a > >> treatment for assignments necessary. Rather, it makes special > > >> robert > > >> -- > >> remember.guy do |as, often| as.you_can - without endhttp://blog.rubybestpractices.com/ > > > Hi Robert, > > >> No variable ... has an object id. > > > Robert,  I know, by virtue of reading a number of your responses in > > this NG, that you re a Ruby expert.  But the statement referenced > > above is contradicted by at least two authorities on Ruby: > > 1. ... every object has a unique object identifier > > Right.  The *object* has an object_id.  The *variable* that contains it > does not.  The difference is subtle but important. > > a = @foo > b = @foo > > a and b hold references to the same object, but they are not the same > variable.  If you do > a = @bar > then b is unaffected. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...@marnen.org > -- > Posted viahttp://www.ruby-forum.com/. Hi Marnen, Thanks for that confirmation. Best wishes, Richard