namespace question

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

Can one have more than one namespace per file? That is, in some_demo.e can one have:

namespace a 
	integer n = 1 
 
namespace b 
	integer n = 1 
 
namespace c 
	integer n = 1 

It would appear not, at this stage anyway, because evaluating the above gives

 
>eui some_demo.e 
C:\euphoria\dev\euJSON\some_demo.e:5 
<0031>:: attempt to redefine n. 
    integer n = 1 
             ^ 

Kind regards,
Bruce/bugmagnet

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

Search



Quick Links

User menu

Not signed in.

Misc Menu