Namespaces

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

I have a global function foo() declared in two includes:

include inc1.e
include inc2.e as two

? foo()

I get an error:

test.exu:4
A namespace qualifier is needed to resolve foo.
foo is defined as a global symbol in:
    inc1.e
    inc2.e

Why is this? Logically, there should now be two functions visible to 
my main program (test.exu), one named two:foo()
and another function named just foo().

Obviously, I know how to "fix" it - just add a namespace to inc1.e also, 
and then go thru my code and add that namespace to all references to foo().

But why is that necessary?

Irv

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

Search



Quick Links

User menu

Not signed in.

Misc Menu