comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Concatenate enumeration
Date: Thu, 26 Nov 2009 11:03:59 +0100
Date: 2009-11-26T11:03:59+01:00	[thread overview]
Message-ID: <1fwpl81qnk0j6.4n19k2guxtfj$.dlg@40tude.net> (raw)
In-Reply-To: 4b0e4ee7$0$6562$9b4e6d93@newsspool4.arcor-online.net

On Thu, 26 Nov 2009 10:48:24 +0100, Georg Bauhaus wrote:

> Dmitry A. Kazakov schrieb:
> 
>> Not very useful, but in other cases reflection could be very interesting.
>> For example, in generics:
>> 
>>    generic
>>       type T is array; -- Only this
>>    package ... is
>>       -- The [first] array index type would be T'Index (1)
>>       -- The array element type would be T'Element etc
>> 
> 
> I'm probably dense.  Is there a difference to what we have
> now other than the unknown number of indexes of the array
> type above?
> 
>    generic
>        type T_Index is (<>);
>        type T_Element is private;
>        type T is array (T_Index range <>) of T_Element;
>    package ... is

The difference is in the number of formal parameters.

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2009-11-26 10:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-23 18:15 Concatenate enumeration Pablo
2009-11-23 19:14 ` Jeffrey R. Carter
2009-11-23 23:21   ` Robert A Duff
2009-11-25 22:53     ` Randy Brukardt
2009-11-26  8:59       ` Dmitry A. Kazakov
2009-11-26  9:48         ` Georg Bauhaus
2009-11-26 10:03           ` Dmitry A. Kazakov [this message]
2009-11-24 19:42 ` Eryndlia Mavourneen
  -- strict thread matches above, loose matches on Subject: below --
2010-10-22 19:49 okellogg
2010-10-26  0:29 ` Yannick Duchêne (Hibou57)
2010-11-12 17:55 ` Randy Brukardt
replies disabled

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