Re: Do you currently use namespaces?

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

-- filea.e
global procedure hello()
    puts(1, "filea: hello\n")
end procedure


-- fileb.e
include filea.e as a
global procedure hello()
    puts(1, "fileb: hello\n")
end procedure


-- myprog.ex
include fileb.e as b

b:hello() -- prints "fileb: hello"


myprog.ex cannot access a:hello() in any way. It would have to directly include
filea.e to access filea.e's hello()

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu