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,4ff929aa5c2b2834 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!inka.de!rz.uni-karlsruhe.de!news.belwue.de!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Ranges and (non)static constraints Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Fri, 17 Nov 2006 12:20:42 +0100 Message-ID: <1msd2xaahtsgv.f8io255x4f0n$.dlg@40tude.net> NNTP-Posting-Date: 17 Nov 2006 12:20:42 CET NNTP-Posting-Host: deb414fa.newsspool4.arcor-online.net X-Trace: DXC=VYQ23`Z74aYaAeROF2PWMQ4IUKBS X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7523 Date: 2006-11-17T12:20:42+01:00 List-Id: On Fri, 17 Nov 2006 11:39:55 +0100, Grein, Christoph (Fa. ESG) wrote: > Dmitry A. Kazakov a �crit : > >> I almost agree with this. However, unfortunately Ada does not require legality of >> type T range 1..N; >> for any N, as it IMO should [*] > ... >> * OK, there still remains a limitation on the biggest universal integer a compiler >> can swallow, but it is a different dimension. > > I cannot follow. This is legal exactly when the compiler can fulfil the requested range. > So what are you talking about? These are sufficiently different. Consider this example: N : constant := 2**64; -- Legal in GNAT type T is range 1..N; -- Illegal in GNAT (This is not a bug) I would at least require the second be legal when the first is. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de