[Oberon] *****SPAM***** Re: *****SPAM***** Re: Oberon-2 type bound procedure scope
Joerg
joerg.straube at iaeth.ch
Tue Dec 12 20:16:26 CET 2023
Not in NW‘s compiler.
Jörg
> Am 12.12.2023 um 10:04 schrieb Diego Sardina <dsar at eml.cc>:
>
> On Tue, Dec 12, 2023, at 09:48, joerg.straube at iaeth.ch wrote:
>> Hi August
>>
>> I never saw this doc before:
>> https://people.inf.ethz.ch/wirth/Oberon/OberonAtAGlance.pdf
>> But it states VARIABLES. Does not mention CONSTANTS nor PROCEDURES.
>>
>> Currently intermediate constants and procedures (BTW internally constants 😊) are visible.
>> The generator ORG has the limitation that access to intermediate variables is not implemented.
>>
>> br
>> Jörg
>>
>
> That document is not updated, the Oberon07 report of 22.9.2011 had this:
>
> "In addition to its formal parameters and locally declared objects, the objects declared in the
> environment of the procedure are also visible in the procedure (with the exception of *variables* and
> of those objects that have the same name as an object declared locally)."
>
> this was changed later in Oberon07 report of 1.10.2013 in this:
>
> "In addition to its formal parameters and locally declared objects, the objects declared globally are
> also visible in the procedure."
>
> In both cases not the best definition (what is the definition of environment? what is globally?), however since then only strictly local and strictly global objects are available to a procedure.
>
>
> --
> Diego Sardina
> --
> Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems
> https://lists.inf.ethz.ch/mailman/listinfo/oberon
More information about the Oberon
mailing list