Re: Globals
- Posted by Christian.CUVIER at agriculture.gouv.fr May 19, 2003
- 408 views
Forgot to say that the "friend" scheme would obviously work only for writers of new/updated libraries (after it is implemented). To deal with libraries written beforehand, then: - "globaldrop <list of <[namespace:]identifier>>" will allow getting some gobal references out of the way; - "globalrename <list of <[namespace:]identifier as [altnamespace:]altidentifier>>" would do what it says. Note that altnamespaces are not required to already exist or not exist. An empty altnamespace would make the identifier appear as global in the including file, even though it is not; may be useful, but not fully recommended. The case Derek is mentioning does not have a clear cut solution. Actually, Bob and Diane did not make their libs foolproof enough; had each of them used a specific namespace to include Alice's and Chris' libs respectively, this wouldn't have happened. CChris