[Oberon] *****SPAM***** Re: *****SPAM***** Re: Oberon-2 type bound procedure scope

Diego Sardina dsar at eml.cc
Tue Dec 12 10:02:48 CET 2023


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


More information about the Oberon mailing list