comp.lang.ada
 help / color / mirror / Atom feed
* Pre-Elaboration clarification.
@ 2001-11-05 15:52 Clueless
  2001-11-05 17:49 ` Jeffrey Carter
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Clueless @ 2001-11-05 15:52 UTC (permalink / raw)


In my Ada spec file, I have the declaration...

	type Int_Data is array(1..Argument_Count) of Integer;

and I'm using the Ada.Command_Line package.

Now, everything compiles fine, and it produces a perfectly usable object
file.

Now, as you may have guessed, the point of this declaration is to create
an array of the type Integer that has as many elements as there are
arguments on the command line.(To be used for assigning numbers to the
array.)

Now, the actual data variable isn't actually elaborated until I get to
the function defintion...

	function Multiply(Some_numbers : in Int_Data) return Integer;

in the same spec file.

Now all appears to be well. No problems.

My question is this...

Is it necessary to specifically instruct the compiler to pre-elaborate
the "type Int_Data" declaration via a pragma, before letting it elaborate
anything else?

Although it really doesnt present any problems here, I can forsee where
such an issue might be a problem later on.
Note: I havent had much of a chance to read up on Pragmas yet, although I
am somewhat familiar with them. I'm also working on familiarizing myself
with order of elaboration issues.

Any pointers(no pun intended) would be helpful.

Thanks.

Clueless
chris@dont.spam.me



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-11-29  9:34 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-05 15:52 Pre-Elaboration clarification Clueless
2001-11-05 17:49 ` Jeffrey Carter
2001-11-09 22:45 ` Matthew Heaney
2001-11-22 15:46   ` Clueless
2001-11-28 17:55     ` Matthew Heaney
2001-11-28 18:12       ` WAS " Mark Lundquist
2001-11-28 18:46     ` Mark Lundquist
2001-11-28 20:13       ` Matthew Heaney
2001-11-29  9:34         ` Simon Wright
2001-11-10  6:31 ` Robert Dewar

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