From: Robert Klemme Date: 2009-02-24T06:59:28+09:00 Subject: Re: pointer and other questions On 23.02.2009 22:42, Yossef Mendelssohn wrote: > On Feb 23, 3:24 pm, Robert Klemme wrote: >> This is irrelevant from a user's point of view. The logic stays the same: >> >> b = 1 # or any other object! >> a = b # a now points to the same object, 1 in this case >> b = 2 # or any other object! a still points to 1 while b points to 2 > > I only pointed it out because there's no way (that I know of) to show > that a and b point to the same object at one point if a Fixnum is > used. You can use 'hi'.sub!, but there's no 1.succ! You can use #object_id for that - even for Fixnums. :-) Cheers robert