[Oberon] Need V4 Code for trivial task.

Douglas G Danforth danforth at greenwoodfarm.com
Mon Nov 28 12:31:29 CET 2016


Chris,
I did as you said and that works.

My confusion stems from a difference between V4 and Component Pascal.
A Component Pascal CHAR is 2 bytes. One must say SHORTCHAR to get 1 byte.
Also I didn't think the compiler would accept (if I had thought of it) a 
CHAR
where it specifies a SYSTEM.BYTE.  Why in heavens name does V4 Files even
mention SYSTEM.BYTE?
-Doug


On 11/28/2016 2:33 AM, Chris Burrows wrote:
> Hi Doug,
>
> You don't need to use any SYSTEM facilities or casts in Oberon for this
> task.
>
> Replace:
>
>    VAR b: SYSTEM.BYTE;
>
> with:
>
>    VAR ch: CHAR;
>
> Then you can say:
>
>    IF (ch = 0AX) OR (ch = 0DX) THEN ch := " " END;
>
> Regards,
> Chris
>
> Chris Burrows
> CFB Software
> http://www.astrobe.com

-- 
Danforth of the Greenwood

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20161128/571cd9e7/attachment.html>


More information about the Oberon mailing list