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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a1d2fe1ec5136718 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Generic warning Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4858CA3B.7030101@gmail.com> <626i5415pe8s2jekhij85k4algrh9i1jfo@4ax.com> <48591C7C.8050304@gmail.com> <9kpc0dqlpz0w$.u1qnk7e1zznp$.dlg@40tude.net> Date: Wed, 18 Jun 2008 17:25:24 +0200 Message-ID: <1bbue8i1efnze.1eajkuma4u0p2.dlg@40tude.net> NNTP-Posting-Date: 18 Jun 2008 17:25:24 CEST NNTP-Posting-Host: 02e82d1d.newsspool1.arcor-online.net X-Trace: DXC=ddCYA;[F`?1_A0jCfgHO6>ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2Nni?\9nnmj0[6LHn;2LCV>7enW;^6ZC`4IXm65S@:3>?>l>j`V?l1d9 X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:765 Date: 2008-06-18T17:25:24+02:00 List-Id: On Wed, 18 Jun 2008 11:10:29 -0400, Robert A Duff wrote: > You can also create a new type: > > type Index is new Positive range 1..Order; You are right. But this type is not enough "new". It is merely type P is new Positive; subtype Index is P range 1..Order; The hidden idea of type Index is range 1..Order; is to let the compiler choose the base according to the actual value of Order. That would not work. Alas. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de