निर्गम
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi 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: आरंभ, आरंभasync, तर्क
#
# Common mistakes:
# • Using `इधरफेंको` without a `⇥` on the enclosing function — `इधरफेंको` requires an enclosing function with a `⇥` alternate-exit type (SEM010).
#
# See also: आरंभ, आरंभasync, तर्क
# =============================================================================
# निर्गम — 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 {
}