comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Constructor functions and extension aggregate
Date: Wed, 12 Mar 2008 11:02:19 -0400
Date: 2008-03-12T11:02:19-04:00	[thread overview]
Message-ID: <wccd4q0m1dw.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: e07645b7-36cb-4cb8-83d1-ab3d47a223f6@u69g2000hse.googlegroups.com

christoph.grein@eurocopter.com writes:

> 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 => <>);

Yes, that's what I meant.

- Bob



      reply	other threads:[~2008-03-12 15:02 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
2008-03-12 15:02   ` Robert A Duff [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox