From: dblack@... Date: 2006-12-15T08:32:58+09:00 Subject: Re: Variables and References ---2049402039-200301060-1166139176=:7735 Content-Type: MULTIPART/MIXED; BOUNDARY="-2049402039-200301060-1166139176=:7735" This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---2049402039-200301060-1166139176=:7735 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi -- On Fri, 15 Dec 2006, Aytek Y=FCksel wrote: > What's the reason that when I assign something to person3, person4 > doesn't change although they are aliases (or aren't they?) When you do an assignment, you wipe out that variable's previous reference, if any. You're re-using the identifier person3, and thus breaking its connection with the object that both it and person4 referred to. David --=20 Q. What's a good holiday present for the serious Rails developer? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) aka The Ruby book for Rails developers! Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com) ---2049402039-200301060-1166139176=:7735-- ---2049402039-200301060-1166139176=:7735--