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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,436e4ce138981b82 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-08 12:05:06 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!news.octanews.net!ash.uu.net!spool.news.uu.net!not-for-mail Date: Mon, 08 Mar 2004 15:03:20 -0500 From: Hyman Rosen User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: abstract sub programs overriding References: <5f59677c.0403021101.4ac263d0@posting.google.com> <5f59677c.0403060718.3d6aa909@posting.google.com> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1078776213.376775@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@aphelion.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1078776213 6796 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:6166 Date: 2004-03-08T15:03:20-05:00 List-Id: Adam Beneschan wrote: > whenever you call a subprogram (either directly or via dispatching), > that subprogram will be concrete (as opposed to C++, which I believe > does not guarantee this). This can happen in C++ only during object constructors or destructors which Ada does not have (at least not in the same sense). C++ does not allow objects of abstract type to be created, but during the execution of a constructor or destructor, the type of the object is the type of the class whose *tor is running, and that may be an abstract class. It is undefined behavior to make a dispatching call which resolves to an abstract method. Most implementations make such a call execute a stub function which prints an error message and aborts the program.