Re: Do you currently use namespaces?

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

Matt Lewis wrote:
> c.k.lester wrote:
> > -- bbcmf.e
> > include a.e
> > include b.e
> > include c.e
> > include d.e -- relies on a, b
> > include f.e -- relies on c, d
> > include g.e -- relies on d, f
> > 
> > -- index.esp -- the main program
> > include bbcmf.e
> 
> 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.

That seems to violate DRY... Or doesn't it?

But, I can see the case for including dependencies. How much more memory
does this require, or does the interpreter see that I've included something
earlier and it can just use that copy?

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

Search



Quick Links

User menu

Not signed in.

Misc Menu