Re: Globals (was: Why doesn't this work?)
- Posted by Christian.CUVIER at agriculture.gouv.fr May 19, 2003
- 405 views
Another idea which will respect existing code and possibly alleviate renaming tasks: Why not use a "friend" new keyword, which acts as "global", exactly in the same context, except that it makes the symbol visible in dorect include only? So, if filea includes fileb and fileb includes filec: - globals anywhere will be seen everywhere (I agree with IK on this particular issue :)) - friends in filec will be visible in fileb, but not in filea - friends in fileb will be seen in filea, but won't interfere with any file attempting to include filea. How about this? CChris