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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,5a88548f1bcf3510 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.66.86.130 with SMTP id p2mr832212paz.22.1353056895740; Fri, 16 Nov 2012 01:08:15 -0800 (PST) Path: 6ni89276pbd.1!nntp.google.com!border1.nntp.dca.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!novia!news-hub.siol.net!news1.t-com.hr!newsfeed.CARNet.hr!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Overring function and its returned type Date: Fri, 9 Nov 2012 09:24:18 +0100 Organization: cbb software GmbH Message-ID: <1vej4u29b8e4z$.289wazkl31wg$.dlg@40tude.net> References: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: FbOMkhMtVLVmu7IwBnt1tw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Date: 2012-11-09T09:24:18+01:00 List-Id: On Fri, 09 Nov 2012 08:13:23 +0100, Yannick Duch�ne (Hibou57) wrote: > overriding > function F > (E : T) > return R'Class -- Not overriding :-( > is abstract; What is this? "overriding" + "abstract" does not make sense. In any case it is the default. When you do nothing, you get F through inheritance and it is abstract when the parent's F was. Ada's declarations are not idempotent, in the sense that you cannot repeat them like you could in C++. So "F ... is abstract" always overloads/conflicts. P.S. They should really have used the syntax with the keyword "overriding" trailing behind "is" rather than preceding "function/procedure." -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de