dev
Download
34 lines 718 BGroffModified 2026-03-09 raw
12345678910111213141516171819202122232425262728293031323334
'\" t
.\" Copyright (c) 2026 Bruce Hill
.\" All rights reserved.
.\"
.TH exit 3 2026-03-08 "Tomo man-pages"
.SH NAME
exit \- exit the program
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI exit\ :\ func(message:\ Text?\ =\ none,\ status:\ Int32\ =\ Int32(1)\ ->\ Abort)
.fi
.SH DESCRIPTION
Exits the program with a given status and optionally prints a message.


.SH ARGUMENTS

.TS
allbox;
lb lb lbx lb
l l l l.
Name	Type	Description	Default
message	Text?	If nonempty, this message will be printed (with a newline) before exiting. 	none
status	Int32	The status code that the program with exit with. 	Int32(1)
.TE
.SH RETURN
This function never returns.

.SH EXAMPLES
.EX
exit("Goodbye forever!", Int32(1))
.EE