comp.lang.ada
 help / color / mirror / Atom feed
From: "J-P. Rosen" <rosen@adalog.fr>
Subject: Re: GNAT 4.9 - missing optimization feature?
Date: Wed, 06 Aug 2014 17:10:52 +0200
Date: 2014-08-06T17:10:52+02:00	[thread overview]
Message-ID: <lrtghv$vad$1@dont-email.me> (raw)
In-Reply-To: <lrtdgp$93q$1@speranza.aioe.org>

Le 06/08/2014 16:19, Victor Porton a écrit :
> The below program, compiled with GNAT 4.9, calls Adjust two times when
>> copying a T1 object.
>> 
>> But it does the same operations with a T2 object without calling Adjust.
>> 
For the simple reason that there is no Adjust defined for objects of
type T2, and there can't be because T2 is limited (derived from
Limited_Controlled).

So what's the point?

-- 
J-P. Rosen
Adalog
2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX
Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00
http://www.adalog.fr

  reply	other threads:[~2014-08-06 15:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-05 22:55 GNAT 4.9 - missing optimization feature? Victor Porton
2014-08-06 14:19 ` Victor Porton
2014-08-06 15:10   ` J-P. Rosen [this message]
2014-08-06 15:16     ` Adam Beneschan
2014-08-06 15:35       ` J-P. Rosen
2014-08-06 15:44         ` Adam Beneschan
2014-08-06 15:15   ` Adam Beneschan
replies disabled

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