comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Question on types conversions - operations
Date: Sun, 14 Jun 2009 11:55:40 -0400
Date: 2009-06-14T11:55:40-04:00	[thread overview]
Message-ID: <wccbpoqx11f.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: qvTYl.740974$yE1.636062@attbi_s21

"Jeffrey R. Carter" <spam.jrcarter.not@nospam.acm.org> writes:

>...One small
> problem when doing this is that the operations that have been
> "eliminated" by being declared abstract are still considered for
> overload resolution.

This problem has been fixed in Ada 2005.  In Ada 95, you can get
ambiguities, because (as you say), the abstract ops are considered
for overload resolution (and then the call is illegal if that's
what it resolves to).  In Ada 2005, the overload res acts as
if the abstract ops are not even there (for nondispatching ops,
of course).

- Bob



  reply	other threads:[~2009-06-14 15:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-13 15:51 Question on types conversions - operations Olivier Scalbert
2009-06-13 16:13 ` Robert Matthews
2009-06-13 16:55 ` anon
2009-06-13 16:58 ` Dmitry A. Kazakov
2009-06-13 16:59 ` sjw
2009-06-13 17:24   ` Martin
2009-06-13 19:35     ` sjw
2009-06-14  8:22     ` sjw
2009-06-15  8:40   ` Jean-Pierre Rosen
2009-06-15  9:30     ` Olivier Scalbert
2009-06-15  9:51       ` stefan-lucks
2009-06-15 10:33     ` AdaMagica
2009-06-15 19:37     ` sjw
2009-06-13 19:56 ` Jeffrey R. Carter
2009-06-14 15:55   ` Robert A Duff [this message]
2009-06-15  8:52 ` AdaMagica
replies disabled

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