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

stronger warnings about changing constants in help and docs #28711

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

JeffBezanson
Copy link
Sponsor Member

@JeffBezanson JeffBezanson commented Aug 16, 2018

ref #28689

@JeffBezanson JeffBezanson added the domain:docs This change adds or pertains to documentation label Aug 16, 2018
warning from the compiler. The only strict requirement is that the *type* of the
variable does not change, which is why `const` variables are much faster than regular
globals.
In some cases changing the value of a `const` variable is allowed, and results
Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of "allowed" perhaps say that it will not error?

@JeffBezanson JeffBezanson merged commit 4b103ef into master Sep 7, 2018
@JeffBezanson JeffBezanson deleted the jb/constdoc branch September 7, 2018 17:39
KristofferC pushed a commit that referenced this pull request Sep 10, 2018
@KristofferC KristofferC mentioned this pull request Sep 10, 2018
KristofferC pushed a commit that referenced this pull request Feb 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants