Re: Phix: How to Globalize(?) a Namespace Identifier

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

The idea that someone/anyone would want to use mgr: in primary_app.exw without declaring mgr totally complexes me, and always has. When I see mgr: and the source file does not tell me where I should look, well that's just plain rude.

That's a good point, and I was probably going overboard on my attempt to make more modular my code scaffold.

In my primary app, I was including this helper app which included other modules that my primary app would need. These other modules are all namespaced with "as ..."

I'll probably just move those includes back into the primary source. It just means that I cannot use an include file that includes other modules.

If I do this:

-- mods.e 
public include helper.e as help 

then the "help" namespace should propagate to any parent source... no?

include mods.e 
help:package() 

or (?)

public include mods.e 
help:package() 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu