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,9b7d3a51d0d8b6ee X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!a12g2000pro.googlegroups.com!not-for-mail From: Adam Beneschan Newsgroups: comp.lang.ada Subject: Re: Extending discriminant types Date: Tue, 25 Nov 2008 13:01:39 -0800 (PST) Organization: http://groups.google.com Message-ID: <71304b75-71bc-4691-b511-69882bdc0fc3@a12g2000pro.googlegroups.com> References: <20081115101632.5f98c596@cube.tz.axivion.com> <20081122011825.5354d1c1@cube.tz.axivion.com> <4928ecad$0$32681$9b4e6d93@newsspool2.arcor-online.net> <648Wk.39330$_Y1.32087@bgtnsc05-news.ops.worldnet.att.net> <492a7d07$0$30236$9b4e6d93@newsspool1.arcor-online.net> <8e021577-260a-44e1-b765-4d81f6ba89df@33g2000yqm.googlegroups.com> <492be08b$0$32676$9b4e6d93@newsspool2.arcor-online.net> <0xZWk.396391$TT4.276049@attbi_s22> NNTP-Posting-Host: 66.126.103.122 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1227646899 16633 127.0.0.1 (25 Nov 2008 21:01:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 25 Nov 2008 21:01:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: a12g2000pro.googlegroups.com; posting-host=66.126.103.122; posting-account=duW0ogkAAABjRdnxgLGXDfna0Gc6XqmQ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3757 Date: 2008-11-25T13:01:39-08:00 List-Id: On Nov 25, 12:49 pm, "Jeffrey R. Carter" wrote: > Georg Bauhaus wrote: > > > generic > > type N is (<>); > > package U is > > > type T (Len: Integer) is private ; > > type Count is new N range 0 .. N'Base'Last; -- 'BASE > > It's interesting that this compiles, since N is not an integer type. > I suspect > you've uncovered a compiler error. It also compiles if you remove the 'Base attribute. -- Adam