comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephen.Leake@gsfc.nasa.gov>
Subject: Re: Elaboration Problem
Date: 1999/06/15
Date: 1999-06-15T00:00:00+00:00	[thread overview]
Message-ID: <uaeu1xx6y.fsf@gsfc.nasa.gov> (raw)
In-Reply-To: tUu73.115$S7.66699@WReNphoon3

cdecker@snet.net (Decker, Christian R) writes:

> I have a constant being declared inside a generic where the value being used
> for the constant is obtained from
> a lookup table.  Later on in a subprogram the constant value is used rather
> than the lookuptable and to my suprise
> the constant is not correct.
> 
> if i do a comparison between the constant and the lookup table value in the
> same subprogram they are not equal.
> 
> Has anyone ever seen behavior like this?
> 
> Is this an elaboration problem where  the constant is being assigned a value
> before the Ada package that the
> lookup table resides in elaborates?
> 
> any suggestions?

Elaboration order problems should raise Program_Error; make sure you
have elaboration checks turned on.

Otherwise, post the code, so we can see what the code is really doing
(often different from what you thought you wanted the code to do :).

-- Stephe




  parent reply	other threads:[~1999-06-15  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-09  0:00 Elaboration Problem Decker, Christian R
1999-06-09  0:00 ` Matthew Heaney
1999-06-15  0:00 ` Stephen Leake [this message]
1999-06-25  0:00   ` Robert Dewar
replies disabled

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