From: john@assen.demon.co.uk (John McCabe)
Subject: [Q] Problem with Array Concatenation?
Date: 1997/07/08
Date: 1997-07-08T00:00:00+00:00 [thread overview]
Message-ID: <33c280c8.418253@news.demon.co.uk> (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>
next reply other threads:[~1997-07-08 0:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-07-08 0:00 John McCabe [this message]
1997-07-08 0:00 ` [Q] Problem with Array Concatenation? 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 ` Robert A Duff
1997-07-13 0:00 ` John McCabe
1997-07-13 0:00 ` Keith Thompson
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox