comp.lang.ada
 help / color / mirror / Atom feed
From: therionics@computer.org (Technobabble)
Subject: unconstrainded array question
Date: 1998/09/19
Date: 1998-09-19T00:00:00+00:00	[thread overview]
Message-ID: <therionics-1809981854540001@a1.phoenix-21.goodnet.com> (raw)

Greetings,

anyone know if it is legal or not in Ada95 to use a RANGE attribute on
an unconstrained array, as in the example:


package My_Package is

  procedure XYZ (This : in Object);

  type UC_Array is array (integer <>) of integer;
  xyz : AC_Array (1..100);


end My_Package;

then in the body ....
procedure XYZ (This : Object) is
begin

     for I in This.xyz'RANGE
         loop 
          ......
end XYZ;


Thanks,
Richmond




             reply	other threads:[~1998-09-19  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-19  0:00 Technobabble [this message]
1998-09-19  0:00 ` unconstrainded array question Tucker Taft
1998-09-19  0:00 ` Tom Moran
1998-09-19  0:00   ` dewarr
1998-09-19  0:00   ` Technobabble
1998-09-19  0:00     ` dewarr
1998-09-19  0:00   ` dewarr
replies disabled

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