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-Thread: 103376,c1da643bcd91f37b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news.glorb.com!multikabel.net!feed20.multikabel.net!news2.euro.net!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder1.cambrium.nl!feed.tweaknews.nl!news.netcologne.de!nhp.netcologne.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Date: Sun, 02 Apr 2006 12:55:17 +0200 From: Georg Bauhaus User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Advice on low level file handling. References: In-Reply-To: X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Message-ID: <442fbb6b$0$7760$9b4e6d93@newsread4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 02 Apr 2006 13:54:19 MEST NNTP-Posting-Host: c2690dc4.newsread4.arcor-online.net X-Trace: DXC=`@d=\0=IPRbGI7?jFVGnfc:ejgIfPPlddjW\KbG]kaMheDdmR4DE3RlG[fEjaX2Y>c=0F65HQV8ifWTYYO<[fJIm X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:3707 Date: 2006-04-02T13:54:19+02:00 List-Id: Peter C. Chapin wrote: > Also I need to count the number of bytes I process and the quantity may > exceed 2**32. I can define a 64 bit modular type and that seems to work > fine on gnat. Is that portable? I'm not extremely worried about > portability, but I'd rather not sacrifice it for no reason. That's nice to hear when someone at least thinks about portability :-) package More is type Count is range 0 .. 2**50; end More; with More; procedure More.try_it is x: Count; begin x := 2**40; end; Using similar front ends (first is ObjectAda for Windows native, second is AppletMagic), but different backends, ...\> adamake more.try_it more.ada: Error: line 3 col 26 LRM:3.5.4(6), subtype bounds must be between System.Min_Int and System.Max_Int, returning plastic subtype (etc, failing) ... \> adajava more.try_it Front end of ..\more.ads succeeded with no errors.