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-Thread: 103376,a7dc5eccc42e4334 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!212.27.60.64.MISMATCH!cleanfeed3-b.proxad.net!nnrp16-2.free.fr!not-for-mail Date: Mon, 15 Mar 2010 21:03:06 +0100 From: Damien Carbonne User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT: bug or feature? References: <4b9d524a$0$22397$426a74cc@news.free.fr> <587c6500-6de1-4ebf-b7b1-8d3b2949d05b@u9g2000yqb.googlegroups.com> In-Reply-To: <587c6500-6de1-4ebf-b7b1-8d3b2949d05b@u9g2000yqb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <4b9e927a$0$21789$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 15 Mar 2010 21:03:06 MET NNTP-Posting-Host: 82.247.219.63 X-Trace: 1268683386 news-2.free.fr 21789 82.247.219.63:59054 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:10552 Date: 2010-03-15T21:03:06+01:00 List-Id: AdaMagica a �crit : >> It's a new feature of Ada 2005. > > Some detail: Your derived type doesn't add any components, so Create > can be inherited without change. > > IN Ada 95, it was felt annoying that even in this case, you have to > override the function. Ada 2005 corrects this. Thanks (both of you) for explanations. Indeed, when no new component is added, it seems possible for the compiler to automatically generate the required function.