-
Notifications
You must be signed in to change notification settings - Fork 771
[class] Replace 'could' and 'might' #4361
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
Conversation
source/classes.tex
Outdated
@@ -614,7 +614,7 @@ | |||
In a \grammarterm{member-declarator} for a bit-field, | |||
the \grammarterm{constant-expression} is parsed as | |||
the longest sequence of tokens | |||
that could syntactically form a \grammarterm{constant-expression}. | |||
that would syntactically form a \grammarterm{constant-expression}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can avoid the hypothetical here (and in other cases where we describe tentative parses):
that would syntactically form a \grammarterm{constant-expression}. | |
that matches the syntax of a \grammarterm{constant-expression}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
source/classes.tex
Outdated
A | ||
\tcode{return} | ||
statement\iref{stmt.return} in a destructor might not directly return to the | ||
statement\iref{stmt.return} in a destructor does not directly return to the | ||
caller; before transferring control to the caller, the destructors for the | ||
members and bases are called. | ||
members and bases (if any) are called. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pre-existing wording is unnecessarily verbose. I think the "does not" might be confusing in the case where there are no members or bases. How about replacing this with:
"A return
statement ([stmt.return]) in a destructor calls the destructors for the members and bases (if any) before transferring control to the caller."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
source/classes.tex
Outdated
@@ -2692,7 +2692,7 @@ | |||
in a | |||
\grammarterm{conversion-function-id} | |||
is the longest sequence of | |||
tokens that could possibly form a \grammarterm{conversion-type-id}. | |||
tokens that would possibly form a \grammarterm{conversion-type-id}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tokens that would possibly form a \grammarterm{conversion-type-id}. | |
tokens that match the syntax of a \grammarterm{conversion-type-id}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"that matches" (singular); it's referring to the sequence
fixed
as directed by ISO/CS.
applied, squashed, and force-pushed |
as directed by ISO/CS.
Partially addresses #4319