Re: Do you currently use namespaces?

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

Matt Lewis wrote:
> d,f and g should make certain to include any file they need.  Then, even if
> your main file doesn't use one of the dependencies, you'll still have 
> working code.

I can see the rationale here; I guess I just hate the idea of doing this:

-- a.e
shared_code()

-- b.e
include a.e

-- c.e
include a.e

...
-- z.e
include a.e

-- myapp.exw
include b.e
include c.e

when I could be doing this:

-- a.e
shared_code()

-- myapp.exw
include a.e -- here included ONCE, for everybody to use
include b.e -- depends on a.e
include c.e -- depends on a.e
...
include z.e -- depends on a.e

But, really, if you're going to depend on a lib, I guess you really should
include it explicitly. :/

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

Search



Quick Links

User menu

Not signed in.

Misc Menu