From: Damien Carbonne <damien.carbonne@free.fr>
Subject: Re: GNAT: bug or feature?
Date: Mon, 15 Mar 2010 21:03:06 +0100
Date: 2010-03-15T21:03:06+01:00 [thread overview]
Message-ID: <4b9e927a$0$21789$426a74cc@news.free.fr> (raw)
In-Reply-To: <587c6500-6de1-4ebf-b7b1-8d3b2949d05b@u9g2000yqb.googlegroups.com>
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.
next prev parent reply other threads:[~2010-03-15 20:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-14 21:16 GNAT: bug or feature? Damien Carbonne
2010-03-15 0:49 ` Robert A Duff
2010-03-15 10:05 ` AdaMagica
2010-03-15 20:03 ` Damien Carbonne [this message]
2010-03-15 21:21 ` Robert A Duff
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox