From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Advice on low level file handling.
Date: Sun, 02 Apr 2006 12:55:17 +0200
Date: 2006-04-02T13:54:19+02:00 [thread overview]
Message-ID: <442fbb6b$0$7760$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <Xns9798DDB851DB4pchapinsovernet@198.186.192.137>
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.
next prev parent reply other threads:[~2006-04-02 10:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-02 2:47 Advice on low level file handling Peter C. Chapin
2006-04-02 10:55 ` Georg Bauhaus [this message]
2006-04-04 1:31 ` Randy Brukardt
2006-04-05 10:41 ` Peter C. Chapin
2006-04-06 7:43 ` Michael Paus
2006-04-06 12:21 ` Peter C. Chapin
2006-04-06 12:46 ` Dmitry A. Kazakov
2006-04-06 14:13 ` Bob Spooner
2006-04-07 10:48 ` Stephen Leake
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox