[Oberon] Intermediate scopes in Oberon-07
andreas_pirklbauer at yahoo.com
Sun Feb 11 18:33:00 CET 2018
> I only declare TYPEs if I use them several times (and as base
> RECORD of a type inheritance hierarchy). To be able to use
> them several times, I normally declare them on module level.
That’s the approach that most people seem to take (apart from
the few exceptions that were cited earlier).
PS: There is another (small) difference between global and local
record types: no type descriptors are built for local record types.
This makes the object file a tiny little bit smaller ;-)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon