ทางออก
Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.
Sets the exit code or exit expression for an entry point.
Syntax: เริ่ม อาร์กิวเมนต์ <name> ทางออก <expr> <block>
Category#
entry
Related#
Examples#
radix/corpus/exitus/exitus.fab (canonical · keyword)#
Sets the exit code or exit expression for an entry point.
# =============================================================================
# ทางออก — 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: เริ่ม, เริ่มอะซิงก์, อาร์กิวเมนต์
#
# Common mistakes:
# • Using `โยน` without a `⇥` on the enclosing function — `โยน` requires an enclosing function with a `⇥` alternate-exit type (SEM010).
#
# See also: เริ่ม, เริ่มอะซิงก์, อาร์กิวเมนต์
# =============================================================================
# ทางออก — CLI exit code on entry
#
# GRAMMAR:
# entryModifier :← 'ทางออก' integer
#
# EXPECTED OUTPUT:
# No เริ่ม — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only entry modifier (whitelist: ทางออก/exitus.fab).
#
@ cli { name = "exitus-smoke" }
main args args exit 1 {
}