comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <rm.dash-bauhaus@futureapps.de>
Subject: Re: Differences in finalization of controlled objects between gcc 4.6 and gcc 4.7
Date: Thu, 19 Jul 2012 16:48:32 +0200
Date: 2012-07-19T16:48:33+02:00	[thread overview]
Message-ID: <50081e41$0$9514$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <ju93rg$43j$1@speranza.aioe.org>

On 19.07.12 15:59, Markus Schï¿œpflin wrote:
> Am 19.07.2012 15:45, schrieb Georg Bauhaus:
>> On 19.07.12 14:23, Markus Schï¿œpflin wrote:
>>> Is there a way to have the objects created in place directly in the array?
>>
>> Can you make the type limited?
> 
> No, I need to be able to copy them around. But IMHO that shouldn't make a
> difference in this case, the compiler should be able to figure out that it can
> construct the objects in place, shouldn't it?

Not sure, wouldn't this optimize the AFCed actions away without
the user saying so? Anyway, maybe renaming works better?

   subtype SMALL is POSITIVE range 1 .. 2;
   type A is array (SMALL) of CTRL.T;

   function MAKER return A is
   begin
      return RESULT : A;
   end MAKER;

   X : A renames MAKER;






  reply	other threads:[~2012-07-26  1:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-19 12:23 Differences in finalization of controlled objects between gcc 4.6 and gcc 4.7 Markus Schöpflin
2012-07-19 13:45 ` Georg Bauhaus
2012-07-19 13:59   ` Markus Schöpflin
2012-07-19 14:48     ` Georg Bauhaus [this message]
2012-07-20  2:56     ` Randy Brukardt
2012-07-20  2:59 ` Randy Brukardt
2012-07-27  7:02   ` Markus Schöpflin
replies disabled

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