Somewhere in Bruce Eckel's Thinking in Java , Bruce correctly makes a tart comment on an academic's explanation of the difference between Call by Reference and Call by Value. (I know the difference between the two).
Does any one know the page. I just can't find it. I have a hard copy 4th edition and a Word version of the 2nd.
1 This can be a flashpoint. There are those who say, �Clearly, it�s a pointer,� but this presumes an underlying implementation. Also, Java references are much more akin to C++ references than to pointers in their syntax. In the 1st edition of this book, I chose to invent a new term, �handle,� because C++ references and Java references have some important differences. I was coming out of C++ and did not want to confuse the C++ programmers whom I assumed would be the largest audience for Java. In the 2nd edition, I decided that �reference� was the more commonly used term, and that anyone changing from C++ would have a lot more to cope with than the terminology of references, so they might as well jump in with both feet. However, there are people who disagree even with the term �reference.� I read in one book where it was �completely wrong to say that Java supports pass by reference,� because Java object identifiers (according to that author) are actually �object references.� And (he goes on) everything is actually pass by value. So you�re not passing by reference, you�re �passing an object reference by value.� One could argue for the precision of such convoluted explanations, but I think my approach simplifies the understanding of the concept without hurting anything (well, the language lawyers may claim that I�m lying to you, but I�ll say that I�m providing an appropriate abstraction).
Joined: Apr 16, 2004
Yes , that's it. I did not look at the footnotes. Thank you.