[M3devel] what to do about file sizes being 32bits?

hendrik at topoi.pooq.com hendrik at topoi.pooq.com
Thu Jan 7 14:11:17 CET 2010


On Thu, Jan 07, 2010 at 06:59:31AM +0000, Jay K wrote:
> 
> File.i3:
> 
> 
>   Status = RECORD
>     type: Type;
>     modificationTime: Time.T;
>     size: CARDINAL (* oops... *)
>   END;
> 
> 
> What to do?
> [0.. higher than 7FFFFFFF] doesn't "just work".
>    higher than 7FFFFFFFF is not legal on 32bit, unless you put "L" on the end,
>    which presumably has some relationship to turning it into a LONGINT, which
>    causes users to fail to compile

In any case, is the proper type for file offsets [0..7fffffffffffffff] 
or [0..ffffffffffffffff]?  I suspect the latter.  It might take some 
effort to make that legal in Modula 3.

-- hendrik



More information about the M3devel mailing list