Skip to content
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

[stmt.do] Needs some work #6492

Open
Eisenwave opened this issue Aug 21, 2023 · 0 comments · May be fixed by #6495
Open

[stmt.do] Needs some work #6492

Eisenwave opened this issue Aug 21, 2023 · 0 comments · May be fixed by #6495

Comments

@Eisenwave
Copy link
Contributor

Eisenwave commented Aug 21, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant