Re: namespace question
- Posted by mattlewis (admin) Aug 05, 2012
- 1115 views
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