New namespace keyword

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

With Matt clarifying that namespaces are used optionally, I think the new
namespace keyword makes a lot of sense. For instance:

---- greeter.e
namespace greeter
global function hello()
  -- code
end function


---- myprog.e
include greeter.e
greeter:hello() -- works
hello() -- works

include greeter.e as g
g:hello() -- works



Matt,

How difficult of a change to the code do you think this is?

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu