Re: pass by reference
- From: Lew <lew@xxxxxxxxxxxxx>
- Date: Mon, 07 Apr 2008 08:40:01 -0400
Patricia Shanahan <pats@xxxxxxx> wrote:
The issue is more critical for people for whom "pass by reference" is
familiar language. They will think they know what it means, and have to
find out somehow that it means something entirely different, when
talking about Java, that it does when talking about other languages.
Andreas Leitgeb wrote:
Why is it ok, to talk of references in Java, but have an entirely different meaning of "reference" in mind in context of the phrase
"pass by reference"?
Because Java defines "reference" in a particular way, but not "call by reference", which is an industry standard term, as I have learned here. The two terms do not depend on each other for their meaning, in the way you wish to imply.
I deduced my liberty to "redefine" "pass by ref" from Java's liberty
to redefine "reference" in the first place. My redefinition of it was coined on java's vocabulary: Objects are not passed directly
(as possible in C++, where the whole structure of the object gets
dumped on the stack), but "through use of (Java-)references".
This is natural language as I understand it.
We aren't discussing "natural" language, we are discussing technical argot.
Enough people have expressed the dangers inherit in deliberately misinterpreting "pass references by value" to mean "pass objects by reference". Those with the wisdom to appreciate the reasoning will make the distinction.
--
Lew
.
- References:
- pass by reference
- From: angelochen960@xxxxxxxxx
- Re: pass by reference
- From: Chase Preuninger
- Re: pass by reference
- From: Andreas Leitgeb
- Re: pass by reference
- From: Lew
- Re: pass by reference
- From: Arved Sandstrom
- Re: pass by reference
- From: Roedy Green
- Re: pass by reference
- From: Arved Sandstrom
- Re: pass by reference
- From: Peter Duniho
- Re: pass by reference
- From: Andreas Leitgeb
- Re: pass by reference
- From: Andreas Leitgeb
- Re: pass by reference
- From: Andreas Leitgeb
- pass by reference
- Prev by Date: Re: java.util.Properties extending from HashMap<Object, Object> instead of HashMap<String, String>
- Next by Date: Re: pass by reference
- Previous by thread: Re: pass by reference
- Next by thread: Re: pass by reference
- Index(es):
Relevant Pages
|