comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Suggestion: Allow functions returning abstract types in certain situations
Date: Wed, 21 May 2014 19:19:21 -0400
Date: 2014-05-21T19:19:21-04:00	[thread overview]
Message-ID: <wcctx8in2iu.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 06f66a19-00f1-405f-a517-05d18a021b65@googlegroups.com

Adam Beneschan <adambeneschan@gmail.com> writes:

> Hmmm... I'd worry that if we allowed an object with an abstract-type
> tag to exist even for a little while, something in the language
> semantics might require Initialize, Adjust, or Finalize to be called
> on it, which could be bad if, for example, it tried to redispatch to
> an abstract body.

Not sure what you mean about "redispatch".  You can't [re]dispatch
without converting to class-wide.

But if (e.g.) Initialize itself is abstract, that would have to
be dealt with.  So it's not quite as simple as I made it out to be.

- Bob

  reply	other threads:[~2014-05-21 23:19 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-21 14:52 Suggestion: Allow functions returning abstract types in certain situations Victor Porton
2014-05-21 16:10 ` Adam Beneschan
2014-05-21 19:09   ` Dan'l Miller
2014-05-21 22:09     ` Robert A Duff
2014-05-21 22:29       ` Adam Beneschan
2014-05-21 22:04   ` Robert A Duff
2014-05-21 22:33     ` Adam Beneschan
2014-05-21 23:19       ` Robert A Duff [this message]
2014-05-22  7:22         ` Dmitry A. Kazakov
2014-05-24 18:39           ` Robert A Duff
2014-05-24 19:20             ` Dmitry A. Kazakov
2014-05-22 14:47         ` Adam Beneschan
2014-05-24 18:45           ` Robert A Duff
replies disabled

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