comp.lang.ada
 help / color / mirror / Atom feed
From: dewarr@my-dejanews.com
Subject: Re: Pb with use of redefined "=" operator
Date: 1998/11/05
Date: 1998-11-05T00:00:00+00:00	[thread overview]
Message-ID: <71sc4h$6en$1@nnrp1.dejanews.com> (raw)
In-Reply-To: m3iugv70ke.fsf@mheaney.ni.net

In article <m3iugv70ke.fsf@mheaney.ni.net>,
  Matthew Heaney <matthew_heaney@acm.org> wrote:


> It is for this reason that I always implement (the full view of) ADTs as
> tagged, even if the partial view is not itself tagged.


I think that this is definitely a wrong approach. The fact of the matter is
that when you get to complex record types, it is rather rare to use the
equality operator meaning just component equality. It seems quite unnecessary
to introduce the overhead resulting from gratuitous tagging just in case this
(mis)use occurs.

In practice I think that the problem is way overblown. Yes, it does cause
some troubles, as we see from yet another thread started up on the subject,
for those who don't know the language rules, but lots of things cause trouble
if you don't know what you are doing!

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    




  reply	other threads:[~1998-11-05  0:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-03  0:00 Pb with use of redefined "=" operator Fran�oise & Herv� BITTEUR
1998-11-04  0:00 ` Matthew Heaney
1998-11-04  0:00   ` Mats Weber
1998-11-05  0:00     ` Matthew Heaney
1998-11-05  0:00       ` dewarr [this message]
1998-11-05  0:00         ` Matthew Heaney
1998-11-06  0:00           ` dewarr
1998-11-09  0:00             ` Robert A Duff
1998-11-10  0:00               ` dennison
1998-11-10  0:00                 ` Robert A Duff
1998-11-05  0:00       ` Mats Weber
1998-11-05  0:00         ` Matthew Heaney
1998-11-09  0:00           ` Robert A Duff
1998-11-09  0:00             ` Brian Rogoff
1998-11-10  0:00               ` Robert A Duff
1998-11-10  0:00             ` Robert I. Eachus
1998-11-04  0:00 ` Mats Weber
1998-11-04  0:00   ` Fran�oise & Herv� BITTEUR
1998-11-04  0:00 ` dewarr
1998-11-04  0:00   ` Tucker Taft
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox