From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2a3157e5254b8223 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!newsfeed.straub-nv.de!news.musoftware.de!wum.musoftware.de!news.weisnix.org!citadel.nobulus.com!fi.sn.net!newsfeed1.fi.sn.net!news.song.fi!not-for-mail Date: Thu, 21 Aug 2008 08:26:26 +0300 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Array slices and types References: <5886ab95-8744-4b72-b911-e4cb8889c7e7@d1g2000hsg.googlegroups.com> <1k5uib98w8fgw.bno6vggps1p3.dlg@40tude.net> <48ac6750$0$23587$4f793bc4@news.tdc.fi> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <48acfbe8$0$23588$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1219296232 news.tdc.fi 23588 81.17.205.61:32788 X-Complaints-To: abuse@tdcnet.fi Xref: g2news1.google.com comp.lang.ada:1704 Date: 2008-08-21T08:26:26+03:00 List-Id: Simon Wright wrote: > Niklas Holsti 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 . @ .