comp.lang.ada
 help / color / mirror / Atom feed
* dynamic arrays in a record ?
@ 2003-02-20  4:57 Chris
  2003-02-20  6:28 ` tmoran
  0 siblings, 1 reply; 4+ messages in thread
From: Chris @ 2003-02-20  4:57 UTC (permalink / raw)


Is there any easy way to put a dynamic array in a record?

I plan to create the array elsewhere based on user input, but I would
like a "placeholder" in the record for it...

...or is this craziness altogether?



SNIP------------------------------------

type board_array is array (positive range <>, positive range <>) of
integer range -1..1;

	type board is record
		aboard: board_array; -- this is junk!
		userscore : integer;
		compscore : integer;
     end record;

----------------------------------------



^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: dynamic arrays in a record ?
@ 2003-02-20  6:20 Grein, Christoph
  0 siblings, 0 replies; 4+ messages in thread
From: Grein, Christoph @ 2003-02-20  6:20 UTC (permalink / raw)
  To: comp.lang.ada

> type board_array is array (positive range <>, positive range <>) of
> integer range -1..1;
> 
> 	type board (First, Second: Positive) is record
> 		aboard: board_array (1..First,1..Second);
> 		userscore : integer;
> 		compscore : integer;
>      end record;



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

end of thread, other threads:[~2003-02-20 16:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-20  4:57 dynamic arrays in a record ? Chris
2003-02-20  6:28 ` tmoran
2003-02-20 16:44   ` Chris
  -- strict thread matches above, loose matches on Subject: below --
2003-02-20  6:20 Grein, Christoph

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