Skip to content

[basic.pre] Clarify definition of variable #8186

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

AlisdairM
Copy link
Contributor

Reorder the positive and negative terms to avoid confusion with the binding of "other than". While grammatically the current wording is precise and correct, I have run into several folks misreading this and wondering why references to objects are not variables.

source/basic.tex Outdated
a reference other than a non-static data member or of
an object.
an object or of
a reference other than a non-static data member.
Copy link
Member

Choose a reason for hiding this comment

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

That feels ambiguous whether "an object other than a non-static data member" is supposed to be a valid reading. (Note that "other than a non-static data member" might be considered to attach to "declaration".)

Copy link
Member

Choose a reason for hiding this comment

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

If you really want to disambiguate, just add a bulleted list with two bullets and keep the order the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So amended.

Reorder the positive and negative terms to avoid confusion with
the binding of "other than".  While grammatically the current
wording is precise and correct, I have run into several folks
misreading this and wondering why references to objects are not
variables.
Co-authored-by: Jens Maurer <[email protected]>
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