Re: Java
blmblm_at_myrealbox.com
Date: 04/06/04
- Next message: blmblm_at_myrealbox.com: "Re: Programmer knowledge"
- Previous message: Paul Hsieh: "Re: Hashing"
- In reply to: Programmer Dude: "Re: Java"
- Next in thread: Thomas stegen: "Re: Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 6 Apr 2004 18:19:17 GMT
In article <40718CA6.51F644BD@Sonnack.com>,
Programmer Dude <Chris@Sonnack.com> wrote:
>blmblm@myrealbox.com wrote:
>
>> That's not at all what I usually think when I read/hear "pointer".
>> Perhaps I have spent too much time in the last few years teaching
>> students to write linked lists and similar data structures in, um,
>> Java ...
>
>Q: Do you call them "pointers" or "references"?
>
>I tend to reserve "pointer" for the data type where the (accessible!)
>value is a memory location. I reserve "reference" for when the
>data type is opaque and NOT accessible.
That sounds to me like a reasonable distinction.
With regard to the things in Java, what I call them is likely to
depend on context. If I'm trying to be precise in my terminology,
I call them references. But if I'm talking to students who are
trying to make the transition from C or C++ to Java, I either call
them references and add a parenthetical "think of them as cleaned-up
pointers" or just call them pointers.
I started to say "and I don't really have occasion very often to talk
about what you call pointers", but that's not exactly right -- I do
have occasion to talk about memory addresses (in the context of
assembly-language-level programming, with students who started in
C/C++), and there too it seems to be helpful to say "like pointers".
-- | B. L. Massingill | ObDisclaimer: I don't speak for my employers; they return the favor. -- -- blm
- Next message: blmblm_at_myrealbox.com: "Re: Programmer knowledge"
- Previous message: Paul Hsieh: "Re: Hashing"
- In reply to: Programmer Dude: "Re: Java"
- Next in thread: Thomas stegen: "Re: Java"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|