comp.lang.ada
 help / color / mirror / Atom feed
From: Maciej Sobczak <no.spam@no.spam.com>
Subject: How to extract range from array
Date: Fri, 17 Mar 2006 12:23:40 +0100
Date: 2006-03-17T12:23:40+01:00	[thread overview]
Message-ID: <dve67s$omt$1@sunnews.cern.ch> (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/



             reply	other threads:[~2006-03-17 11:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 11:23 Maciej Sobczak [this message]
2006-03-17 12:29 ` How to extract range from array 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
replies disabled

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