Re: Do you currently use namespaces?
- Posted by ken mortenson <kenneth_john at yahoo?co?> May 26, 2008
- 1010 views
Derek Parnell wrote: > > ken mortenson wrote: > > What happens when you include a file? Everything becomes exposed! > > This, needless to say, does not promote information hiding! > > Ummm ... actually this happens *not* to be the case... The ONLY things that > are exposed are the symbols explicitly marked as 'global' within the file > being > included. For example ... I'm sorry guys. I wasn't being clear. fileA.e includes fileB.e; fileB.e includes fileC.e Everything global in fileC is now exposed to fileA. This continues for every include. The end result is one big file, not a group of modules. This may be a problem. It is a problem when names collide.