[conv.general, expr.static.cast] Remove inappropriate "temporary"#6646
Open
tkoeppe wants to merge 2 commits into
Open
[conv.general, expr.static.cast] Remove inappropriate "temporary"#6646tkoeppe wants to merge 2 commits into
tkoeppe wants to merge 2 commits into
Conversation
Contributor
Author
|
@opensdh: could you please PTAL a look? |
It's not clear in which sense the invented variables in question are "temporary". Since C++ already contains a notion of a "temporary (object)", and since variables are precisely _not_ temporary objects, it seems unnecessary to use the words "temporary variable" in the present sense.
opensdh
approved these changes
Nov 9, 2023
opensdh
left a comment
Contributor
There was a problem hiding this comment.
You should probably check with more than one person here, though.
Contributor
Author
|
@jensmaurer: Could I interest you/CWG in this? |
Member
|
CWG 2023-11-10: We want [class.temporary] p6 to refer to "invented temporary variable" as one of the roots of "temporary expression" and say this is a "temporary object". Other cases (where we don't mean "temporary") should use "invented variable". This needs a core issue. |
Contributor
|
OP should say it addresses #2215 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It's not clear in which sense the invented variables in question are "temporary". Since C++ already contains a notion of a "temporary (object)", and since variables are precisely not temporary objects, it seems unnecessary to use the words "temporary variable" in the present sense.
See also http://thecodelesscode.com/case/234.