Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Namespaces are permitted to be nested #93

Open
ericlippert opened this issue Jun 21, 2017 · 0 comments
Open

Namespaces are permitted to be nested #93

ericlippert opened this issue Jun 21, 2017 · 0 comments

Comments

@ericlippert
Copy link
Contributor

In chapter 20, Namespaces, we have the line

"The declaration-list must not contain a namespace-definition."

indicating that namespace declarations of the form

namespace foo {
namespace bar { }
}

are illegal.

This is incorrect; nested namespaces in this form are legal.

The text which says that you cannot mix the "namespace foo { ... } " form with the "namespace bar;" form is correct.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant