Skip to content

[intro.execution] p8 if vs. if and only if for the definition #954

Description

@xmh0511

Full name of submitter (unless configured in github; will be published with the issue): Jim X

[intro.execution] p8 says:

An expression X is said to be sequenced before an expression Y if every value computation and every side effect associated with the expression X is sequenced before every value computation and every side effect associated with the expression Y.

The if means this is a logical implication, which means that if we know X is sequenced before Y, we cannot conversely infer that every value computation and every side effect of X is sequenced before those of Y. Is this the intent?

The intent might be that they are equivalent from the wording

if A is sequenced before B (or, equivalently, B is sequenced after A), then the execution of A shall precede the execution of B.

Suggested Resolution:

An expression X is said to be sequenced before an expression Y if and only if every value computation and every side effect associated with the expression X is sequenced before every value computation and every side effect associated with the expression Y.

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

    Issue actions