Files
2025-10-25 03:02:53 +03:00

25 lines
795 B
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

[stmt.do]
# 8 Statements [[stmt]](./#stmt)
## 8.6 Iteration statements [[stmt.iter]](stmt.iter#stmt.do)
### 8.6.3 The do statement [stmt.do]
[1](#1)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/statements.tex#L651)
The expression is [contextually converted to bool](conv#def:conversion,contextual_to_bool "7.3Standard conversions[conv]");
if that conversion is ill-formed, the program is ill-formed[.](#1.sentence-1)
[2](#2)
[#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/statements.tex#L655)
In the do statement, the substatement is executed repeatedly
until the value of the expression becomes false[.](#2.sentence-1)
The test takes
place after each execution of the statement[.](#2.sentence-2)