Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion doc/1.4/language.md
Original file line number Diff line number Diff line change
Expand Up @@ -3923,9 +3923,16 @@ assert <em>expr</em>;
</pre>

Evaluates *`expr`*. If the result is `true`, the
statement has no effect; otherwise, a runtime-error is generated.
statement has no effect; otherwise, a fatal runtime error is generated, aborting the current execution thread.
*`expr`* must have type `bool`.

> [!NOTE]
>
> DML guarantees that the assertion expression is evaluated, and that the
> program terminates if the expression is false. This differs from the `assert`
> construct in the C/C++ standard libraries, which can sometimes be optimized
> out depending on build settings.

### Error Statements

<pre>
Expand Down