[Bluej-discuss] confusion over = (and == ?)
Ian Barland
ibarland at radford.edu
Sat Dec 1 13:05:50 GMT 2007
>Ian Barland <ibarland at radford.edu> wrote:
>> I'd argue that == is overloaded, and even mention in CS1:
> There was
> an artificial (in my mind) distinction being drawn between how "=="
> operates on primitives and how "==" operates on references.
>
Ah, I see what you were getting at now, and agree 100%. That artificial
distinction could also lead to the (incorrect) idea that Java has
call-by-reference, rather than just realizing "references are values" (in
Java).
--Ian (B.)
More information about the bluej-discuss
mailing list