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,b3c479d8e293030d X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin2!goblin1!goblin.stu.neva.ru!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Unconstrained base subtype questions 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: Date: Fri, 1 Apr 2011 10:20:48 +0200 Message-ID: <1156kd5j961zs$.1say3mvrbaofw$.dlg@40tude.net> NNTP-Posting-Date: 01 Apr 2011 10:20:47 CEST NNTP-Posting-Host: ec3bfe54.newsspool4.arcor-online.net X-Trace: DXC=e4G3l8LU0]fOKO]LCQ@0g`4IUK On Thu, 31 Mar 2011 21:51:29 +0000 (UTC), Alex Mentis wrote: > Using variables gave me the behavior I was expecting. I didn't know Ada > did infinite precision arithmetic on static expressions. It tries: P : constant := 1_000_000; I : constant := 2**P - 2**P; will likely fail to compile. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de