Re: Globals (was: Why doesn't this work?)

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu