[Oberon] Need V4 Code for trivial task.
Skulski, Wojciech
skulski at pas.rochester.edu
Mon Nov 28 20:46:36 CET 2016
Oberon-07 defines BYTE as a keyword:
BYTE the integers between 0 and 255
So now we have a sort of a variety between CHAR, SHORTCHAR, BYTE, and SYSTEM.BYTE defined in different places by different people at different time. Perhaps it would not be a bad idea to just adopt one set of definitions across the spectrum?
Committees appear not that bad after all...
Wojtek
________________________________________
From: Oberon [oberon-bounces at lists.inf.ethz.ch] on behalf of Alexander Ilin [ajsoft at yandex.ru]
Sent: Monday, November 28, 2016 9:41 AM
To: ETH Oberon and related systems; chris at cfbsoftware.com
Subject: Re: [Oberon] Need V4 Code for trivial task.
A SYSTEM.BYTE formal parameter is compatible with any byte-sized actual parameter.
An ARRAY OF SYSTEM.BYTE is compatible with anything.
28.11.2016, 15:49, "Douglas G Danforth" <danforth at greenwoodfarm.com>:
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
---=====---
Александр
More information about the Oberon
mailing list