An easier way to learn how to use the Haxe core and related technologies.
Tagged with: Haxe
To exit from the command-line in Haxe, you can use Sys.exit(n)
, where n
is the exit code. (0
indicates normal termination, and anything non-zero is usually treated as an error.)
Note that this is not sys.exit(n)
(with a lower-case S -- the sys
package), but Sys
, the class that provides access to system APIs.