[Oberon] Intermediate scopes in Oberon-07

August Karlstrom fusionfile at gmail.com
Sat Feb 10 16:48:15 CET 2018

On 2018-02-10 15:37, Andreas Pirklbauer wrote:
> In the few cases where it is, perhaps, desirable to nest a procedure
> to indicate that it is called only from the enclosing procedure, one
> can certainly live with those procedures being global. 

One advantage of a local procedure is that it can be given a shorter 
name since the context is clear. However, it is worse with locally 
declared types that need to be declared globally since they need to 
travel a long way up to the type section at the top of the module; a 
procedure can be defined near the procedure which calls it.

-- August

More information about the Oberon mailing list