comp.lang.ada
 help / color / mirror / Atom feed
* Anonymous array not allowed as components
@ 2019-11-01  8:32 L Dries
  2019-11-01  9:34 ` joakimds
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: L Dries @ 2019-11-01  8:32 UTC (permalink / raw)


I have an need for an array of Unbounded_Strings in which i define the 
elements.

I declared it as:

       Debug_Proc   : array (1 .. nr_Proc) of Unbounded_String :=
         (Debug_Proc(Lan),
          To_Unbounded_String("Only"),
          To_Unbounded_String("Empty_Buffer"),
          ...
          etc.

Then I got the message:

65:22 Anonymous array not allowed as components
This results i a position just before "array"

The value nr_Proc is defined in another package.
Debug_Proc(Lan) is an Unbounded String
I tried to replace nr_Proc by a value. The same result.
I tried to replave the value of the first Unbounded String by "--", 
again no result
I tried set it as an constant array, also no result.

What do I do wrong?
-- 
L. Dries

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

end of thread, other threads:[~2019-11-01 15:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-01  8:32 Anonymous array not allowed as components L Dries
2019-11-01  9:34 ` joakimds
2019-11-01 10:00   ` L Dries
2019-11-01 10:47   ` Jeffrey R. Carter
2019-11-01  9:34 ` AdaMagica
2019-11-01  9:56   ` L Dries
2019-11-01 10:33   ` L Dries
2019-11-01 15:55     ` AdaMagica
2019-11-01 10:41 ` Jeffrey R. Carter

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