comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Array slices and types
Date: Thu, 21 Aug 2008 08:26:26 +0300
Date: 2008-08-21T08:26:26+03:00	[thread overview]
Message-ID: <48acfbe8$0$23588$4f793bc4@news.tdc.fi> (raw)
In-Reply-To: <m2fxozo3qx.fsf@mac.com>

Simon Wright wrote:
> Niklas Holsti <niklas.holsti@tidorum.invalid> writes:
> 
> 
>>Or you can use the 'Base attribute:
>>
>>   N(1..3) := Name'Base (Some_String(1..3));
> 
> 
> Only for scalar types, says GNAT.

Oops... GNAT 3.15p accepted 'Base for the array type. But the LRM 
indeed allows it only for scalar types, so this is a bug (or 
"extension" :-) in 3.15p. Sorry for my misinformation (and I know I 
should use a newer GNAT).

But doesn't this example show that it would be useful to have 'Base 
also for array types? Any strong reasons against it?

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .



  reply	other threads:[~2008-08-21  5:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-20 14:51 Array slices and types Maciej Sobczak
2008-08-20 15:26 ` Niklas Holsti
2008-08-20 15:46 ` Dmitry A. Kazakov
2008-08-20 18:52   ` Niklas Holsti
2008-08-20 20:01     ` Simon Wright
2008-08-21  5:26       ` Niklas Holsti [this message]
2008-08-21  8:53         ` Dmitry A. Kazakov
2008-08-21 14:44           ` Adam Beneschan
2008-08-21 15:46             ` Dmitry A. Kazakov
2008-08-22  4:30             ` Randy Brukardt
2008-08-20 17:47 ` stefan-lucks
2008-08-20 17:51   ` stefan-lucks
2008-08-20 20:45 ` Adam Beneschan
2008-08-21 21:16   ` Maciej Sobczak
2008-08-23  2:50 ` Steve
replies disabled

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