Haxe 中有某种退出声明吗?

Is there some kind of exit statement in Haxe?

haxe 中有某种退出语句吗?喜欢

import sys
sys.exit(0)

在Python或

System.exit(0);

在 Java?

P.S.: 系统目标只需要这个...

您可以在 sys 目标中使用 Sys.exit(code) (cpp, cs, hl, java, lua, macro, neko, php, python ).

https://api.haxe.org/Sys.html#exit

对于 Flash 目标:flash.system.System.exit(code) https://api.haxe.org/flash/system/System.html#exit