<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 21 Oct 2006 07:56:46
From   : Sprow <info@...>
Subject: Re: Bugs in OS 1.20 (long)

In article <20061020225113.5604.qmail@...>,
   Greg Cook <debounce@...> wrote:
> On Sat, 14 Oct 2006 16:47:12 +0200, John Kortink <kortink@...>
> wrote:

[snip perils]

> Finally, there's a third bug I've noticed in RFS and CFS; on opening an
> empty file with OPENIN, EOF#<handle> will correctly return nonzero, but
> BGET#<handle> will succeed once, returning &FE.  Therefore the idiom
> REPEAT:...BGET#fh%...:UNTIL EOF#fh% will malfunction on empty files.

That's correct behaviour, there's an "error on next EOF flag" so that the
first BGET will not fault the above program layout (but returns with carry
set) to give you chance to check for EOF. A second attempt will cause an
error,
Sprow.
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>