comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Debugging Ada
Date: Wed, 21 Dec 2011 09:18:11 -0800 (PST)
Date: 2011-12-21T09:18:11-08:00	[thread overview]
Message-ID: <0892748e-8943-41e3-8843-9121838b4465@f33g2000yqh.googlegroups.com> (raw)
In-Reply-To: 1fcdb3e7-6125-4cdc-9514-dd3cff2a7350@h3g2000yqa.googlegroups.com

awdorrin wrote on comp.lang.ada:
> That is what I believe is happening as well.
>
> Is there some way I can force the compiler to not do this, but execute
> the code at elaboration time instead?
>
> I've been looking at the GNAT docs and haven't stumbled across
> anything yet...

Make sure that in the statement

LAN_CFG_FILE : constant String := SysConfig.Cfg_Filename( LAN_CFG );

the value of LAN_CFG is not itself preelaborated. For example, make it
the result of calling Ada.Command_Line.Argument (1) or
GNAT.OS_Lib.Getenv.

--
Ludovic Brenta.



  reply	other threads:[~2011-12-21 17:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 15:14 Debugging Ada awdorrin
2011-12-21 16:45 ` Ludovic Brenta
2011-12-21 16:51   ` awdorrin
2011-12-21 17:18     ` Ludovic Brenta [this message]
2011-12-21 17:36       ` awdorrin
2011-12-21 18:06         ` Simon Wright
2011-12-21 18:43           ` awdorrin
2011-12-21 19:46         ` Ludovic Brenta
2011-12-22  7:21           ` Adam Beneschan
2011-12-22  8:39             ` Ludovic Brenta
2011-12-22 12:20             ` awdorrin
2011-12-22 10:28 ` Gautier write-only
replies disabled

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