comp.lang.ada
 help / color / mirror / Atom feed
From: "Luke A. Guest" <laguest@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk>
Subject: Re: [No_Elaboration_Code] GNAT still generating rep_to_pos, why?
Date: Fri, 02 Jan 2004 19:46:45 +0000
Date: 2004-01-02T19:46:45+00:00	[thread overview]
Message-ID: <pan.2004.01.02.19.46.44.889031@n_o_p_o_r_k_a_n_d_h_a_m.abyss2.demon.co.uk> (raw)
In-Reply-To: mailman.202.1073071924.31149.comp.lang.ada@ada-france.org

On Fri, 02 Jan 2004 20:31:53 +0100, Per Sandberg wrote:

> To avoid elaboration code is quite simple, just write all your packages 
> in such a way that no elaboration code is needed.
> 
> The simplest way to make this hapend is to add
> 	"pragma pure"

Can't use pure because this package has access types and an instance of a
record type.

> or
> 	"pragma preelaborate"
> in all your specs.
> Then the compiler will force you to write the code in suh a way that no 
> elaboration code is needed.

I tried this one, but the that code is still generated.

Thanks,
Luke.




  reply	other threads:[~2004-01-02 19:46 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-02 11:59 [No_Elaboration_Code] GNAT still generating rep_to_pos, why? Luke A. Guest
2004-01-02 17:51 ` Stephen Leake
2004-01-02 18:14   ` Luke A. Guest
2004-01-02 19:31     ` Per Sandberg
2004-01-02 19:46       ` Luke A. Guest [this message]
2004-01-02 21:17     ` Stephen Leake
2004-01-02 22:16       ` Luke A. Guest
2004-01-03  1:43         ` Stephen Leake
     [not found]         ` <87ekuhe5wq.fsf@news.sdbk.de>
2004-01-03  9:58           ` Luke A. Guest
2004-01-03  8:44       ` Luke A. Guest
2004-01-03  1:12     ` Robert I. Eachus
2004-01-03  8:41       ` Luke A. Guest
2004-01-03 11:53         ` Simon Wright
2004-01-03 12:20           ` Luke A. Guest
2004-01-04 12:26             ` Simon Wright
2004-01-03  1:41 ` sk
2004-01-03  2:29   ` Luke A. Guest
2004-01-03 10:48 ` Florian Weimer
2004-01-03 11:32   ` Luke A. Guest
2004-01-03 13:11     ` Florian Weimer
replies disabled

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