Skip to content

Incorrect comment in [intro.execution] p. 12 #1706

Closed
@RazvanAM

Description

@RazvanAM

In this paragraph there is the following code sample:

S s1(1); // full-expression is call of S​::​S(int)

Why is the full-expression the call to the constructor and not the entire construct (init-declarator) itself? (In the same paragraph (p 12.3) it says that an init-declarator is a full-expression.)

Activity

jensmaurer

jensmaurer commented on Sep 15, 2017

@jensmaurer
Member

What's the difference in this case?

RazvanAM

RazvanAM commented on Sep 19, 2017

@RazvanAM
Author

There is no difference in behaviour, I think it is just a minor inconsistency in wording.
I tracked the evolution of the paragraph describing full-expressions and I discovered that the code sample that I cited was written even before the passage: "If a language construct is defined to produce an implicit call of a function, a use of the language construct is considered to be an expression for the purposes of this definition" was added. And those samples remained the same, even after other changes were made to the paragraph. I actually sent you an e-mail regarding this (at Jens.Maurer@gmx.net, as I saw you handled a change to paragraphs which describe full-expressions: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2016/p0507r0.html).

added
decision-requiredA decision of the editorial group (or the Project Editor) is required.
on Oct 20, 2017
jensmaurer

jensmaurer commented on Nov 7, 2017

@jensmaurer
Member

Editorial meeting consensus: "is" -> "comprises"

removed
decision-requiredA decision of the editorial group (or the Project Editor) is required.
on Nov 7, 2017
added a commit that references this issue on Nov 11, 2017
abf6f7f
added a commit that references this issue on Nov 12, 2017
04c4e83
added a commit that references this issue on Nov 15, 2017
68e7e19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @RazvanAM@jensmaurer

        Issue actions

          Incorrect comment in [intro.execution] p. 12 · Issue #1706 · cplusplus/draft