TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Jean-Pierre Rosen <[log in to unmask]>
Reply To:
Jean-Pierre Rosen <[log in to unmask]>
Date:
Wed, 12 Apr 2000 18:15:38 +0200
Content-Type:
text/plain
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