[Oberon] Export of scalar/non scalar variables.
lab.eas at gmail.com
Wed Jan 1 19:03:27 CET 2014
1. Scalar = has magnitude and not direction [like a vector].
2. consider possible reasons WHY it can't be exported,
and why it should be read-only?
If they are to be ReadWrite, then they'd be able to be re-IMPORTED.
I'm guessing that if the byte-size is fixed and known, the compiler
should have no problem.
On 12/24/13, Alexey Veselovsky <alexey.veselovsky at gmail.com> wrote:
> In Oberon language report 2013 there is rule:
>> Variables cannot be exported, with the exception of those of scalar types
> in read-only mode.
> But there is no definition for scalar type.
> Also in Project Oberon 2013 (which uses Oberon-07/13) module ORS exports
> array variable:
> MODULE ORS;
> TYPE Ident* = ARRAY IdLen OF CHAR;
> VAR id*: Ident;
> END ORS.
> Array of char - scalar?
> PS. Merry Christmas!
> Thanks, Alexey.
More information about the Oberon