Skip to content

[stmt.do] Needs some work #6492

Open
@Eisenwave

Description

@Eisenwave

In [stmt.do], it is stated that "the expression is contextually converted ...".

No grammar rule is provided in this paragraph, so it is a complete mystery to the reader what expression is being referred to. The expression is also called "condition" in [stmt.while], but this is not done in [stmt.do].

Also, unlike [stmt.while], the construction of the semantics does not happen in terms of goto, but is done in prose. This is another ugly asymmetry.

Last but no least, a note could be used to clarify the difference to while, or an example could show that a do ... while (false) statement is executed exactly once.

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