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

Mark Node::getNode() final #237

Merged
merged 1 commit into from
Jan 18, 2017

Conversation

sethfowler
Copy link
Contributor

There are no overrides for Node::getNode(), and it seems to me that it would have rather unintuitive results if there were, so unless we have a specific reason to support this, let's mark getNode() final. This has the side benefit of helping the compiler devirtualize the call.

@sethfowler sethfowler self-assigned this Jan 18, 2017
@sethfowler sethfowler requested a review from ChrisDodd January 18, 2017 02:01
@ChrisDodd ChrisDodd merged commit 7411f09 into p4lang:master Jan 18, 2017
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.

2 participants