[Oberon] Re (2): Audit of Oberon.QuotedPrintable.Mod .

Michael Schierl schierlm at gmx.de
Sun May 10 01:03:05 CEST 2020


Am 08.05.2020 um 21:12 schrieb peter at easthope.ca:
> Joerg,
> Thanks.
>> R.eot becomes only TRUE, if you read BEYOND the last byte.
> Understood.
> ch is the character read in ReadWrite.  c is the preceeding character
> received by ReadWrite as parameter.
> In most executions, ReadWrite reads ch and then prints the preceding
> character c.

I am confused why it first reads and then writes. If you swap those
statements so that it writes c before reading ch, you won't have
problems with incorrect EOT.

Note that it can still be that you reach EOT here, in case you have an
incomplete quoted pair at the end of the input. So the EOT check makes
sense (either here or in the caller code that parses the quoted pair).



More information about the Oberon mailing list