namespace N1.N2 { class A {} class B {} }is semantically equivalent to
namespace N1 { namespace N2 { class A {} class B {} } }end example] Paragraph 61 Namespaces are open-ended, and two namespace declarations with the same fully qualified name contribute to the same declaration space (§10.3). [Example: In the example
namespace N1.N2 { class A {} } namespace N1.N2 { class B {} }the two namespace declarations above contribute to the same declaration space, in this case declaring two classes with the fully qualified names N1.N2.A and N1.N2.B. Because the two declarations contribute to the same declaration space, it would have been an error if each contained a declaration of a member with the same name. end example]
| |
Jagger Software Ltd | |
Company # 4070126 | |
VAT # 762 5213 42 |