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: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s22.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Extending discriminant types 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> In-Reply-To: <492be08b$0$32676$9b4e6d93@newsspool2.arcor-online.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <0xZWk.396391$TT4.276049@attbi_s22> NNTP-Posting-Host: 173.16.158.68 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s22 1227646140 173.16.158.68 (Tue, 25 Nov 2008 20:49:00 GMT) NNTP-Posting-Date: Tue, 25 Nov 2008 20:49:00 GMT Organization: AT&T ASP.att.net Date: Tue, 25 Nov 2008 20:49:00 GMT Xref: g2news1.google.com comp.lang.ada:2785 Date: 2008-11-25T20:49:00+00:00 List-Id: 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. -- Jeff Carter "C's solution to this [variable-sized array parameters] has real problems, and people who are complaining about safety definitely have a point." Dennis Ritchie 25