gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gm2] IOChan.RawRead() fails to update file position


From: Gaius Mulley
Subject: Re: [Gm2] IOChan.RawRead() fails to update file position
Date: Wed, 27 Apr 2011 17:05:15 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

SiTex Graphics <address@hidden> writes:

> Hi Gaius,
>
> It appears that IOChan.RawRead() does not update the current file
> position.  Test code attached.  Compile with:
>
> gm2 -o testpos -fiso -fmakeall testpos.mod
>
> The test program reads 4 bytes from a test.txt file then reports the
> current file position.
>
> -Scott

Hi Scott,

just double checking that the answer should be '4'?  Out of interest
which version of gm2 are you using?  I get the following results from
the latest cvs:

address@hidden:~/GM2$ gm2 -g -fiso testpos.mod
./a.out 
4
address@hidden:~/GM2$ cat test.txt 
address@hidden:~/GM2$ 
address@hidden:~/GM2$ gm2 --version
GNU Modula-2  1.0.1  (20110427)
  grafted onto GCC 4.1.2

regards,
Gaius



reply via email to

[Prev in Thread] Current Thread [Next in Thread]