Re: What's new in 2.5?
- Posted by Pete Lomax <petelomax at blueyonder.co.uk> Sep 08, 2004
- 463 views
>Christian Cuvier wrote: >> Ok, let me restate it. What is missing is a way for the including file, and >> no >> one else but the included file, >> to see globals in the included file, so as not to pollute the "universal" >> namespace, generating name clashes. How about: include file as namespace ... hide(namespace) The reason I suggest this is that RDS Eu (and Posetf when I get round to it) must know which part of the global symbol table to scan when it finds a "namespace:<whatever>" reference, so it should be relatively easy to do. The globals will still exist (for debugging/ex.err) but will be skipped during parsing, avoiding name clashes. Regards Pete PS I may have previously implied that named scopes might apply to local identifiers. They don't. Namespaces only ever apply to the global symbol table.