Re: Do you currently use namespaces?

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

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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu