TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
Date:
Wed, 12 Apr 2000 18:15:38 +0200
Reply-To:
Jean-Pierre Rosen <[log in to unmask]>
Subject:
MIME-Version:
1.0
Content-Transfer-Encoding:
7bit
Content-Type:
text/plain; charset="iso-8859-1"
Organization:
Adalog
From:
Jean-Pierre Rosen <[log in to unmask]>
Parts/Attachments:
text/plain (19 lines)
From: Alan and Carmel Brain <[log in to unmask]>

> Similarly for a==b, where in java you're saying "are a and b just aliases
> for the same object"
> rather than comparing their internal values. Which is done with
a.equals(b),
> assuming
> that's defined.
>
One of the most irritating things in Java is how it insists on reference
semantics.
Note that here, == means reference equality, while equals means value
equality.
However, the default (inherited) for equals is reference equality!
Really confusing...
---------------------------------------------------------
           J-P. Rosen ([log in to unmask])
Visit Adalog's web site at http://pro.wanadoo.fr/adalog

ATOM RSS1 RSS2