Re: Pointer vs Reference
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Sep 2007 05:13:15 GMT
On Sun, 30 Sep 2007 02:14:20 +0200, Lasse Reichstein Nielsen
<lrn@xxxxxxxxxx> wrote, quoted or indirectly quoted someone who said :
I.e., the JLS identifies references and "pointers", so saying that
references are pointers is trivial and vacuous.
Here's my take on what happened. Originally Java's references were
called pointers. However, the term "pointers" had a bad rap from what
chaos happens when you allow pointer arithmetic, optional
initialialiser and manual object recycling.
So they decided to rename them "references". But old habits die hard,
and people, even those at Sun, sometimes continued to call them
"pointers". The word pointer leaked through in various places
including "NullPointerException".
Somebody might put in an RFE to purge the term pointer in all but a
few carefully controlled places, and to provide an alias for
NullPointerException, NullReferenceException, and to deprecate
NullPointerException.
see http://mindprod.com/jgloss/rfe.html
I don't want to do it. It is a little too weenie for me.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- References:
- Re: Pointer vs Reference
- From: Lasse Reichstein Nielsen
- Re: Pointer vs Reference
- Prev by Date: Re: Pointer vs Reference
- Next by Date: Re: Great SWT Program
- Previous by thread: Re: Pointer vs Reference
- Next by thread: Re: Pointer vs Reference
- Index(es):
Relevant Pages
|