出口
Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant 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).
#
@ 命令行 { name = "exitus-smoke" }
main args args exit 1 {
}