comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <see.my.homepage@gmail.com>
Subject: Constructor functions and extension aggregate
Date: Wed, 12 Mar 2008 06:37:53 -0700 (PDT)
Date: 2008-03-12T06:37:53-07:00	[thread overview]
Message-ID: <76387782-e2f7-4b9c-ba73-4c698ba8e26b@u69g2000hse.googlegroups.com> (raw)

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

?

--
Maciej Sobczak * www.msobczak.com * www.inspirel.com



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

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