comp.lang.ada
 help / color / mirror / Atom feed
* Passing arrays to procedures
@ 2004-12-22 14:34 xadian
  2004-12-22 15:09 ` Alex R. Mosteo
  2004-12-22 16:20 ` Martin Krischik
  0 siblings, 2 replies; 7+ messages in thread
From: xadian @ 2004-12-22 14:34 UTC (permalink / raw)


Hi,

I just wanted to pass an array to a procedure.
A procedure head like this:

procedure procname (n : in Integer; v1 : in array;) is ...

it causes the following error:

anonymous array definition not allowed here.
Same for array(Integer range 1..2) of Integer. The procedure is an extra 
file so there are no arraynames of the main procedure available for the 
parameter part.
Anyone knows why this error occurs and how to fix it?!

thx
Xadian



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

end of thread, other threads:[~2004-12-23  0:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-22 14:34 Passing arrays to procedures xadian
2004-12-22 15:09 ` Alex R. Mosteo
2004-12-22 18:43   ` xadian
2004-12-22 19:34     ` tmoran
2004-12-22 21:03     ` Martin Krischik
2004-12-23  0:50     ` Jeffrey Carter
2004-12-22 16:20 ` Martin Krischik

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