From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!eu.feeder.erje.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!newsswitch.lcs.mit.edu!nntp.TheWorld.com!.POSTED!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Suggestion: Allow functions returning abstract types in certain situations Date: Wed, 21 May 2014 19:19:21 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <06f66a19-00f1-405f-a517-05d18a021b65@googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls7.std.com 1400714361 15004 192.74.137.71 (21 May 2014 23:19:21 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 21 May 2014 23:19:21 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:NrWMvzu57k+SDacr4x7W8IWUVo0= Xref: news.eternal-september.org comp.lang.ada:19965 Date: 2014-05-21T19:19:21-04:00 List-Id: Adam Beneschan 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