From: dblack@... Date: 2007-01-28T02:13:50+09:00 Subject: Re: pass by reference? ---2049402039-757453356-1169918019=:20289 Content-Type: MULTIPART/MIXED; BOUNDARY="-2049402039-757453356-1169918019=:20289" 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-757453356-1169918019=:20289 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Hi-- On Sun, 28 Jan 2007, Wolfgang N=E1dasi-Donner wrote: > dblack@wobblini.net schrieb: > >> Right -- I take that as the starting point -- but what I mean is that >> the way the assignment/rebinding semantics work doesn't necessarily >> pertain to the reference/value question. > > I agree. reference/value came from the world before talking about objects= =2E I=20 > remember in Algol60 somehow the wording "after 'integer i;' the variable = 'i=20 > IS an integer". > > We would never say that after writing "s =3D 'A Ruby String object'" the= =20 > variable 's' IS a String object - it gives a name for a special String=20 > object, or references a special String object (see 1). There's also the distinction between references and immediate values... though as Robert K. said, most of the differences are hidden from the programmer (like, there's no extra level of indirection you have to explicitly do). > Wolfgang N=E1dasi-Donner > > (1): This wording is is used from a German, who tries to find out the bes= t=20 > English word for what in German will be called "benennt", or "bezeichnet"= =2E I=20 > don't know what wording is really good in English. I think "betoken" is probably the closest etymologically to "bezeichnen", but it's more archaic-sounding. "Designate" might be a good match. (This is why we end up doing things like using "reference" as a verb :-) David --=20 Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com) ---2049402039-757453356-1169918019=:20289-- ---2049402039-757453356-1169918019=:20289--