Oberon Community Platform Forum

Development => Oberon & Active Oberon => Topic started by: kevinhely on August 30, 2019, 02:41:17 AM



Title: Looking for clarification: local procedures cannot call local procedures, right?
Post by: kevinhely on August 30, 2019, 02:41:17 AM
Hi,

The following code:

Code:
PROCEDURE P;

  PROCEDURE Q; (*local*)
    ...
  END Q;

  PROCEDURE R; (*local*)
  BEGIN
    ...
    Q
    ...
  END R;

END P;

is disallowed by the definition of Oberon07, that is, local procedure R cannot call local procedure Q, since the identifier Q is not local to R and not global. Is that correct? (The definition seems to suggest it is.)