Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Refactor mangle-only extern(C++, namespace) into an AttribDeclaration" #10037

Closed
wants to merge 1 commit into from

Conversation

WalterBright
Copy link
Member

Reverts #10021 which no longer has a purpose since its follow-on #10031 is not going to happen.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub fetch digger
dub run digger -- build "master + dmd#10037"

@Geod24
Copy link
Member

Geod24 commented Jun 15, 2019

What ? Read the PR again. #10031 was only mentioned in the context of test coverage, not as a motivation for the PR.

The point of #10021 was simple: extern(C++, "namespace") created a ScopeDsymbol then worked around the scope-introducing behavior. That was very unnatural, unscalable, and error prone. Now extern(C++, "namespace") is an AttribDeclaration and the only special handling it requires is in cppmangle.

@WalterBright
Copy link
Member Author

I looked at it again, sorry, you're right.

@WalterBright WalterBright deleted the revert-10021-refactor-extern-cpp branch June 15, 2019 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants