comp.lang.ada
 help / color / mirror / Atom feed
* [Q] Problem with Array Concatenation?
@ 1997-07-08  0:00 John McCabe
  1997-07-08  0:00 ` Michael Quinn
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: John McCabe @ 1997-07-08  0:00 UTC (permalink / raw)



Hi,

I would appreciate confirmation on whether the following piece of code
is legal Ada 83, and what the effect should be (obviously I haven't
bothered with Text_IO for outputting results, but what should happen
when I compile this?).

-----------
procedure Test is
   type Arr_Type is array (1 .. 100) of Integer;

   Src_Array : Arr_Type;
   Dst_Array : Arr_Type;
begin
   for Index in 1 .. 100 loop
      Src_Array (Index) := Index;
   end loop;
   Dst_Array := (others => 0);

   Dst_Array := Src_Array (51 .. 100) & Src_Array (1 .. 50);
end Test;
-----------

Thanking you in advance.


Best Regards
John McCabe <john@assen.demon.co.uk>




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

end of thread, other threads:[~1997-07-13  0:00 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-07-08  0:00 [Q] Problem with Array Concatenation? John McCabe
1997-07-08  0:00 ` Michael Quinn
1997-07-09  0:00 ` Tucker Taft
1997-07-10  0:00 ` Matthew Heaney
1997-07-11  0:00   ` Tucker Taft
1997-07-11  0:00     ` Matthew Heaney
1997-07-13  0:00     ` Keith Thompson
1997-07-13  0:00     ` Robert A Duff
1997-07-13  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