comp.lang.ada
 help / color / mirror / Atom feed
* Positional Aggregates
@ 1998-11-11  0:00 John McCabe
  1998-11-11  0:00 ` dennison
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John McCabe @ 1998-11-11  0:00 UTC (permalink / raw)


In a declarative part of a subroutine I have lines like the following:

   Files_Used  : constant := 1;
   Files_Index : array (1..Files_Used) of Integer := (17);

When compiled, I get a warning:

   error: positional aggregate cannot have one component

Is this valid for an array with only one element?

-- 
Best Regards
John McCabe
---------------------------------------------------------------------
Marconi Electronic Systems
Simulation & Training Division
=====================================================================
Not necessarily my company or service providers opinions.
=====================================================================






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

end of thread, other threads:[~1998-11-12  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-11  0:00 Positional Aggregates John McCabe
1998-11-11  0:00 ` dennison
1998-11-12  0:00   ` dewar
1998-11-12  0:00     ` John McCabe
1998-11-12  0:00       ` dewarr
1998-11-11  0:00 ` Marc A. Criley
1998-11-11  0:00 ` John McCabe
1998-11-12  0:00   ` dewarr
1998-11-12  0:00     ` John McCabe

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