Oberon Community Platform Forum
December 16, 2019, 02:37:06 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Looking for clarification: local procedures cannot call local procedures, right?  (Read 218 times)
kevinhely
Newbie
*
Posts: 44


« 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.)
« Last Edit: August 30, 2019, 02:43:50 AM by kevinhely » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!