Hi! 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? Thanks, Alexey.
Hi there,
But there is no definition for scalar type.
I asked Prof. Wirth more details about the term scalar type used in the Oberon Report. He replied with:
The word "scalar" means "on a scale". It is not a specific technical term. As for Oberon, it is actually synonymous with basic, or with "not structured".
Both unstructured and structured variables are supposd to be exported as "read-only".
He also sent me a more recent report with the correct sentence, it is now:
Variables are always exported in read-only mode.
This is the reason structured variables are exported in the new Oberon book.
Thanks, Alexey.
-- Diego Sardina
participants (2)
-
Alexey Veselovsky -
Diego Sardina