comp.lang.ada
 help / color / mirror / Atom feed
From: mcsun!sunic!nobeltech!leeu@uunet.uu.net  (Leif Euren)
Subject: Re: Weird Exception Problem
Date: 18 Sep 92 09:16:03 GMT	[thread overview]
Message-ID: <1992Sep18.091603.9064@nobeltech.se> (raw)

Mark Atwood <matwood%cascades.utah.edu@cs.utah.edu> writes:

>In one package, if an exception is raised, we get a PROGRAM_ERROR ...

>I tried reading the LRM and it doesnt help much.  It says that a
>PROGRAM_ERROR can be raised if I try using something before its been
>"elaborated".  I guess its a good yardstick of the depth of my Ada
>understanding that I still dont know what "elaboration" really is, even
>after reading the LRM.

My best description of the elaboration is to say "it a kind of
execution of the declarations".  The declarations of the various Ada
units are traversed, and among other things constants and initiated
variables get their values.  As thay can get values from a function
call, the body of that function has to be elaborated and executed
before the elaboration of that particular declaration can finish.

But as described in LRM 10.5, this may not always be the case when
trusting the automatic elaboration scheme. Thus the predefined pragma
ELABORATE.

Now, your exception may be caused by a number (next to infinite :-) of
things.  My suggestion is that you try to force elaboration on all
units your package depends on.  If that doesn't help, well then I
don't know.

	Good luck!  /Leif Euren
 __  __ 
|  \   |  All opinions are my own, even if my employer claims otherwise!
|   \  |
|      |	Leif Euren			NobelTech Systems AB
|  \   |	System Manager Rational  	S-175 88 JARFALLA
|__ \__|	tel: +46-758-84072		Sweden

             reply	other threads:[~1992-09-18  9:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-09-18  9:16 Leif Euren [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-09-18 17:05 Weird Exception Problem Bob Kitzberger
1992-09-18  1:38 dog.ee.lbl.gov!hellgate.utah.edu!cascades.utah.edu!matwood
replies disabled

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