Thanks for the pointers.
My confusion on scopingentities has to do with the following:
In Delphi, functions can be nested and then also provide a scope.
Old libraries, e.g. ported from turbo pascal times, sometimes
are structured like that. But that scope is nested, not global.
Variables defined in the implementation part of a unit are not
globally reachable, unlike those defined in the interface.
Stephan