C++ '-'

Started by
10 comments, last by chollida1 17 years, 9 months ago
Quote:Original post by chollida1
Quote:Original post by Alpha_ProgDes
Quote:Original post by Anonymous Poster
ps lol
I also forgot to say that there is nothing like it in java as it doesn't use pointers.

No, Java uses references which basically are pointers. It's just that the language doesn't treat them like C++ does (actually it treats them quite differently)


Not quite, try reseating a reference, try passing in a null reference.

Cheers
Chris


You are thinking of c++ modifer "reference". Alpha_ProgDes was describing how objects are passed in java, by reference. It is quite easy to reassign a java object, or to make it null.
Advertisement
Quote:Original post by rip-off
Quote:Original post by chollida1
Quote:Original post by Alpha_ProgDes
Quote:Original post by Anonymous Poster
ps lol
I also forgot to say that there is nothing like it in java as it doesn't use pointers.

No, Java uses references which basically are pointers. It's just that the language doesn't treat them like C++ does (actually it treats them quite differently)


Not quite, try reseating a reference, try passing in a null reference.

Cheers
Chris


You are thinking of c++ modifer "reference". Alpha_ProgDes was describing how objects are passed in java, by reference. It is quite easy to reassign a java object, or to make it null.


Ahh, cool. sounds like a misunderstanding. I did indeed think he was comparing them to C++ references.:)

Thanks for clearing that up:)

Cheers
Chris
CheersChris

This topic is closed to new replies.

Advertisement