comp.lang.ada
 help / color / mirror / Atom feed
* How to extract range from array
@ 2006-03-17 11:23 Maciej Sobczak
  2006-03-17 12:29 ` Ed Falis
  2006-03-17 15:12 ` Martin Krischik
  0 siblings, 2 replies; 12+ messages in thread
From: Maciej Sobczak @ 2006-03-17 11:23 UTC (permalink / raw)


Hi,

Consider this:

    type My_Range is range 1..10;
    type My_Array is array(My_Range) of Integer;

now, the other way round:

    type My_Array is array(1..10) of Integer;
    type My_Range is ???;

In this second example I would like to extract the type of range from 
the already defined array type and give it a name. Is it possible? How?


-- 
Maciej Sobczak : http://www.msobczak.com/
Programming    : http://www.msobczak.com/prog/



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

end of thread, other threads:[~2006-03-21 19:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-17 11:23 How to extract range from array Maciej Sobczak
2006-03-17 12:29 ` Ed Falis
2006-03-17 15:12 ` Martin Krischik
2006-03-20 10:04   ` Maciej Sobczak
2006-03-20 13:14   ` Maciej Sobczak
2006-03-20 13:58     ` Ed Falis
2006-03-20 14:20     ` Dmitry A. Kazakov
2006-03-20 15:31     ` Robert A Duff
2006-03-20 19:01     ` Martin Krischik
2006-03-20 20:20       ` Georg Bauhaus
2006-03-20 21:51       ` Jeffrey R. Carter
2006-03-21 19:12         ` Martin Krischik

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