comp.lang.ada
 help / color / mirror / Atom feed
From: "Nick Roberts" <nickroberts@adaos.worldonline.co.uk>
Subject: Re: Renaming an abstract function
Date: Thu, 22 Nov 2001 03:14:02 -0000
Date: 2001-11-22T03:14:02+00:00	[thread overview]
Message-ID: <9tht9c$2j1ni$2@ID-25716.news.dfncis.de> (raw)
In-Reply-To: uherqbwj3.fsf@gsfc.nasa.gov

"Stephen Leake" <stephen.a.leake.1@gsfc.nasa.gov> wrote in message
> ...
> Well, the full text of the AI talks about renaming an _inherited_
> subprogram, not the abstract subprogram itself. It does not discuss
> exactly what should happen for this case.

Precisely my point (in parallel post).

> Simply following the rules for inheriting abstract subprograms, you
> are required to give an overriding subprogram for any derived type.
> Thus, if the renaming is valid, you'd have to override both P and "*",

This is correct.

> which is surely not the intent.

Yes it is the intent. The Rationale (8.3) makes this clear.

> So it seems reasonable to conclude
> that the renaming itself is invalid.

No, I don't think so.

> We could propose a "renaming inheritance" rule that says an equivalent
> renaming is applied to the overriding subprogram; that is the intent
> of this renaming.

Intriguing idea, but it is already laid down: the renaming creates a new
'slot', thus both (the original and renamed) subprograms can be (and, in the
case of an asbtract subprogram, would need to be) overridden separately.

>
> --
> -- Stephe

--
Best wishes,
Nick Roberts






  reply	other threads:[~2001-11-22  3:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-15 23:52 Renaming an abstract function Nick Roberts
2001-11-16 14:52 ` Stephen Leake
2001-11-17  3:08   ` Adam Beneschan
2001-11-17 17:47     ` Egil Harald Hoevik
2001-11-17 18:33     ` Stephen Leake
2001-11-17 22:00     ` Mark Biggar
2001-11-17 23:17       ` Nick Roberts
2001-11-19 15:38       ` Stephen Leake
2001-11-22  3:14         ` Nick Roberts [this message]
2001-11-23 15:40           ` Stephen Leake
2001-11-24  3:55             ` Nick Roberts
replies disabled

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