comp.lang.ada
 help / color / mirror / Atom feed
From: christoph.grein@eurocopter.com
Subject: Re: Constructor functions and extension aggregate
Date: Wed, 12 Mar 2008 06:50:42 -0700 (PDT)
Date: 2008-03-12T06:50:42-07:00	[thread overview]
Message-ID: <e07645b7-36cb-4cb8-83d1-ab3d47a223f6@u69g2000hse.googlegroups.com> (raw)
In-Reply-To: 76387782-e2f7-4b9c-ba73-4c698ba8e26b@u69g2000hse.googlegroups.com

On 12 Mrz., 14:37, Maciej Sobczak <see.my.homep...@gmail.com> wrote:
> Consider:
>
> http://www.adacore.com/2007/10/01/ada-gem-11/
>
> The constructor function P.Make_T has:
>
>    return (Name => To_Unbounded_String (Name), others => <>);
>
> Shouldn't it be rather:
>
>    return (Ada.Finalization.Limited_Controlled with
>       Name => To_Unbounded_String (Name));

Most probably you're right. However the theme of this gem was how to
use constructor functions for limited type, not how to implement them.
Thus this must be an oversight of the author. I guess he even should
have said:

    return (Ada.Finalization.Limited_Controlled with
            Name => To_Unbounded_String (Name), others => <>);




  reply	other threads:[~2008-03-12 13:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12 13:37 Constructor functions and extension aggregate Maciej Sobczak
2008-03-12 13:50 ` christoph.grein [this message]
2008-03-12 15:02   ` 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