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

joerg.straube at iaeth.ch joerg.straube at iaeth.ch
Tue Dec 12 09:48:17 CET 2023

Hi August

I never saw this doc before:

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.


Von: Oberon <oberon-bounces at lists.inf.ethz.ch> im Auftrag von strohm at airmail.net <strohm at airmail.net>
Datum: Sonntag, 10. Dezember 2023 um 18:34
An: oberon at lists.inf.ethz.ch <oberon at lists.inf.ethz.ch>
Betreff: Re: [Oberon] *****SPAM***** Re: *****SPAM***** Re: Oberon-2 type bound procedure scope
It appears that we disagree on the semantics of the quoted sentence, specifically on the denotation of the word "globally".

--John R. Strohm
On Sun, 10 Dec 2023 17:12:41 +0100, August Karlstrom <fusionfile at gmail.com> wrote:

On 2023-12-10 15:29, strohm at airmail.net wrote:
> In the example at hand, as I read "In addition to its formal
> parameters and locally declared objects, the objects declared
> globally are also visible in the procedure." on page 12 of the
> Oberon-07 report at Microsoft Word - Oberon07.Report.doc (ethz.ch)
> , items
> declared at module M scope are visible inside Q, as are items
> declared at procedure M.P scope.

The quoted sentence says exactly that only strictly local and global
objects (constants, types, variables and procedures) are visible in a
given procedure, so items declared in the scope M.P are not visible in
the scope M.P.Q. The document "Oberon at a Glance" says "No access to
variables in outer procedures" but that's just a reflection of the
Project Oberon 2013 compiler enforcing this only for variables.


Oberon at lists.inf.ethz.ch mailing list for ETH Oberon and related systems

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.inf.ethz.ch/pipermail/oberon/attachments/20231212/92b2ec09/attachment.html>

More information about the Oberon mailing list