exitApp

Built-ins

Canonical ID: app.exit. Nederlands: sluitApp.

Immediately finishes the entire program successfully, including remaining functions, loops, event scripts, and pending timers. It takes no status-code argument. In the IDE or browser it ends the program session and preserves the preview for inspection. A native application requests normal host shutdown; it does not wait indefinitely on its last frame. Use return when only the current function should finish.

Signature

exitApp()

Arguments

This call takes no arguments. Always write the parentheses.

Return value

Does not return.

Example

# language: en
function finish():
    say "Pliro"
    exitApp()

finish()
say "unreachable"

Only Pliro is printed; the call does not return.

Notes and common mistakes

Use the function name for your source language. Its canonical ID is a shared documentation label; you do not type that ID as a call. Giving your own variable or function the same name can hide the built-in. Supply the documented arguments and value types. Pliro reports mismatches when checking can detect them, or when the call runs.

Programming guides · Host support · Calls and arguments