comp.lang.ada
 help / color / mirror / Atom feed
* Problem with anonymous arrays
@ 2004-04-24 22:46 Delf
  2004-04-24 23:26 ` Lutz Donnerhacke
  2004-04-25  8:10 ` Delf
  0 siblings, 2 replies; 6+ messages in thread
From: Delf @ 2004-04-24 22:46 UTC (permalink / raw)


Hi.
I've got a little problem:

/CODE/
...
   N: constant Integer := 4;

   protected Choice is
      entry EnterOnRP (I: Integer);
      procedure ExitTheRP;
   private
      WhoCanPass: Integer := -1;
      MAXCARS: Integer := 5;
      NbCarsOnRP: Integer := 0;
      WantToGo: array(0..(N - 1)) of Boolean := (0..(N - 1) => FALSE);
   end Choice;
...
\CODE\

When I compile, I obtain the following message:
Giratoire.adb:17:17: anonymous arrays not allowed as components

What I have to modify ?
Thanks a lot.

--
Delf



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

end of thread, other threads:[~2004-04-25 18:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-24 22:46 Problem with anonymous arrays Delf
2004-04-24 23:26 ` Lutz Donnerhacke
2004-04-25  0:29   ` Delf
2004-04-25  8:10 ` Delf
2004-04-25 17:58   ` Lutz Donnerhacke
2004-04-25 18:01   ` Lutz Donnerhacke

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