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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,56250291936154a0 X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: OS Bindings (was: Where is the elusive jump command?) Date: 2000/04/12 Message-ID: #1/1 X-Deja-AN: 610228285 Sender: bobduff@world.std.com (Robert A Duff) References: <38D771CA.D41AF9B5@port.ac.uk> <8bq7ku$mc8$1@nnrp1.deja.com><38E0E723.C39C392@quadruscorp.com> <8brfm4$4uc$1@nnrp1.deja.com><8brn4k$p6i$1@slb0.atl.mindspring.net> <8brrpj$i04$1@nnrp1.deja.com><38E312F8.78883ACB@icn.siemens.de> <8c4rvf$d9k$1@nnrp1.deja.com> <2000Apr5.070127.1@eisner> <2000Apr6.081305.1@eisner><8ci6vf$r5a$1@nnrp1.deja.com> <8ck638$krs3@ftp.kvaerner.com><8cp23c$4gp$1@nnrp1.deja.com> <8csjs8$o2p3@ftp.kvaerner.com><8d0su8$bqt$1@nnrp1.deja.com> <8d20bq$o2p4@ftp.kvaerner.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-04-12T00:00:00+00:00 List-Id: "Tarjei T. Jensen" writes: > >One problem is that I can't follow that advice in the case of the > >largest supported integer. That is, I can't say: > > > > type T is range 0..2**64-1; > > > >so I have to use a modular type. > > Why would it be illegal to write > > type T is range 0 .. #16#ffff_ffff_ffff_ffff#; Because you have a syntax error -- an extra #. ;-) Also because System.Max_Int is 2**63-1 or 2**31-1 on most implementations, and there's a rule saying that the bounds have to be less than or equal to System.Max_Int. If I made the rules, there would be no Max_Int. - Bob