Re: ver 4 and ver 3.11 function name conflicts

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

Is the "default namespace" for a file the filename sans extension? or is it otherwise defined?

There is no automatic default namespace, nor a rule on what a default namespace has to be nor does the docs currently say what the default namespace is smile We just started using them and have not yet documented that.

You could have:

-- yugo.e 
namespace porche 
function win_race() 
 
-- myprog.ex 
include yugo.e 
 
? porche:win_race() 

As a standard in the std library I think it will be the filename but we have not discussed that and there may be cases where it does not make sense to be. For instance:

ifdef DOS32 then 
    include dos_racer.e 
elsifdef WIN32 then 
    include win_racer.e 
end ifdef 
 
racer:start() 

Jeremy

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

Search



Quick Links

User menu

Not signed in.

Misc Menu