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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,5f0f4bfb0467bb19 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.35.68 with SMTP id f4mr5205121pbj.5.1320916243303; Thu, 10 Nov 2011 01:10:43 -0800 (PST) Path: h5ni21354pba.0!nntp.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Thu, 10 Nov 2011 10:09:19 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.7; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Constructors with multiple inheritance References: <11513972.2788.1317325228383.JavaMail.geo-discussion-forums@yqnv12> <1rj1mmkvwud1d.dzqoy4jhdfca$.dlg@40tude.net> <4976045.4489.1317352313370.JavaMail.geo-discussion-forums@yqjw35> <2pu3h5hqltxi$.ze4yrf1f2y8z.dlg@40tude.net> <23774546.1654.1317391464047.JavaMail.geo-discussion-forums@yqnk41> <1gnrks1djlaok.1k0r5f8z9ylfx.dlg@40tude.net> <21605158.153.1320805494018.JavaMail.geo-discussion-forums@yqiu15> <6366850.176.1320896821400.JavaMail.geo-discussion-forums@yqcm23> <4ebb92d9$0$6640$9b4e6d93@newsspool2.arcor-online.net> In-Reply-To: <4ebb92d9$0$6640$9b4e6d93@newsspool2.arcor-online.net> Message-ID: <4ebb94bf$0$6636$9b4e6d93@newsspool2.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 10 Nov 2011 10:09:19 CET NNTP-Posting-Host: 94f52523.newsspool2.arcor-online.net X-Trace: DXC=_4oiUL[\@DnIkjb;<8iR=aA9EHlD;3Ycb4Fo<]lROoRa8kFejVh[N23ZIDa;Qoan\HolXF>0b X-Complaints-To: usenet-abuse@arcor.de Xref: news1.google.com comp.lang.ada:18906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2011-11-10T10:09:19+01:00 List-Id: On 11/10/11 10:01 AM, Georg Bauhaus wrote: > type All_Those_Par_Classes_Ref is access Par_Class'Class; > > X : All_Those_Par_Classes_Ref := new Some_Par_Class'(Construct(a, b, c)); ... Construct(a, b); because overriding cannot add parameters. See AdaMagica's response. Indeed, a function that is not a primitive subprogram of Par_Class will be more flexible.