I'd like to ask whether there is interest in being able to restrict the scope of identifiers. This would help to achieve better modularity, which is especially useful for source code libraries. Maybe we come up with some useful ideas, which I can implement in my LPP pre-processor.
For instance, for developers of libraries I could introduce a new keyword say Local, in order to declare variables that have a scope similar to Global but which are only visible in the file where they are declared. Another option is to introduce namespaces that can be applied by users of libraries, like
Code: Select all
XIncludeFile "calc.pbi" As math
Debug math\Sin(0.5)
Regards, Little John