Re: namespace question

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

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

[snip]

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

No, namespaces are basically file-based. In order to declare a default namespace for a file, the namespace directive must be the first non-comment in the file. When the parser sees subsequent instances of the token "namespace" it interprets them as a user defined type.

Matt

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

Search



Quick Links

User menu

Not signed in.

Misc Menu