thoát
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Sets the exit code or exit expression for an entry point.
Syntax: bắt_đầu đối_số <name> thoát <expr> <block>
Category#
entry
Related#
Examples#
radix/corpus/exitus/exitus.fab (canonical · keyword)#
Sets the exit code or exit expression for an entry point.
# =============================================================================
# thoát — Sets the exit code or exit expression for an entry point
# =============================================================================
#
# What this teaches:
# • Sets the exit code or exit expression for an entry point.
# • Related keywords: bắt_đầu, bắt_đầu_bất_đồng_bộ, đối_số
#
# Common mistakes:
# • Using `ném` without a `⇥` on the enclosing function — `ném` requires an enclosing function with a `⇥` alternate-exit type (SEM010).
#
# See also: bắt_đầu, bắt_đầu_bất_đồng_bộ, đối_số
# =============================================================================
# thoát — CLI exit code on entry
#
# GRAMMAR:
# entryModifier :← 'thoát' integer
#
# EXPECTED OUTPUT:
# No bắt_đầu — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only entry modifier (whitelist: thoát/exitus.fab).
#
@ cli { name = "exitus-smoke" }
main args args exit 1 {
}