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-Language: ENGLISH,CP1252 X-Google-Thread: 103376,92c39a3be0a7f17d X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-19 06:49:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!news.kvaerner.com!news@kvaerner.com From: "Tarjei T. Jensen" Newsgroups: comp.lang.ada Subject: Re: ARG Urgent Problems (was: labeling) Date: Tue, 19 Mar 2002 15:38:01 +0100 Organization: KOGAS Message-ID: References: <1016370675.163940@ananke.eclipse.net.uk> NNTP-Posting-Host: 155.209.159.73 Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Xref: archiver1.google.com comp.lang.ada:21454 Date: 2002-03-19T15:38:01+01:00 List-Id: "Jean-Pierre Rosen" wrote > > "Tarjei T. Jensen" a �crit dans le message news: a7700l$84f4@news.kvaerner.com... > > C allows both integers and unsigned to wrap, but somehow those who decides > > these things think that therefore Ada unsigned above integer'last must wrap > > as well. > > > Maybe it's just that you missed an important feature of Ada: don't use predefined types, specify your needs, then declare the > appropriate types. You want a 32 bits integer without wrapping semantics? Fine, just declare: > > type My_Int is range 0..2**32-1; Try type My_int is range 0 .. 2**64-1; Even on 32bit unix there are the occational 64bit unsigned integer these days. greetings,