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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-09-23 06:29:58 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsmi-us.news.garr.it!NewsITBone-GARR!area.cu.mi.it!newsfeeder.edisontel.com!fu-berlin.de!uni-berlin.de!tar-alcarin.cbb-automation.DE!not-for-mail From: Dmitry A. Kazakov Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? Date: Tue, 23 Sep 2003 15:38:19 +0200 Message-ID: References: <568ede3c.0309160929.1d0d3d95@posting.google.com> <3F67AFB9.7040001@attbi.com> <3F6F0841.60607@attbi.com> <1064244399.683441@master.nyc.kbcfp.com> <3F70021A.2010305@attbi.com> <1064320198.65725@master.nyc.kbcfp.com> NNTP-Posting-Host: tar-alcarin.cbb-automation.de (212.79.194.111) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de 1064323795 4751777 212.79.194.111 (16 [77047]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:42801 Date: 2003-09-23T15:38:19+02:00 List-Id: On Tue, 23 Sep 2003 08:29:56 -0400, Hyman Rosen wrote: >Oh, by the way, is it true that "virtual" methods of Ada objects >can only be procedures and not functions? Untrue. "virtual" = dispatching = covariant. Ada supports dispatching functions. Moreover one can dispatch on the result, one can dispatch on an anonymous pointer. Actually the oppositive is true. Any operation is "virtual" except ones of non-tagged or class-wide types if declared before the freezing point (within {} brackets, in C++ terms). --- Regards, Dmitry Kazakov www.dmitry-kazakov.de