Re: Do you currently use namespaces?

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

ken mortenson wrote:
> 
> Jeremy Cowgar wrote:
> > In addition, if you use namespaces, you can forget the fact 100% that
> > anything
> > is global throughout the entire program. For instance:
> 
> > include FileA.e as a
> > include FileB.e as b
> > a:hello()
> > b:hello()
> 
> I see the point you make regarding the similarity in the following.  However,
> 
> what happens if FileA.e above includes FileC.e and FileB.e includes FileD.e
> which both have hello().  Does your main file have to know to declare a
> namespace for the includes withing files A & B?  This violates the
> principle of information hiding.

I am getting punchy.  See if you can figure out what I actually meant to
say, because what I said makes no sense.  Or does it?  I need sleep.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu