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

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

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() 

No. You are still trying to use/thinking of namespaces as global. It works the other way round, you can use help: to refer to sub-includes of helper.e (but only in mods.e, where help: is defined), or if you include mods.e as mods then mods:package() is fine even though package() is actually in the helper.e sub-include of mods.e.

Phix makes no distinction whatsoever between "include" and "public include", it quietly ignores the "public" (only) for compatibility with Euphoria.

Should you want to bore yourself to tears, and/or burn out a few grey cells, at the start of psym.e you can find a quite detailed essay on Phix include handling.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu