Platform-specific Lua Library. Provides some platform-specific functions for the Lua target, such as conversion from Haxe types to native types and vice-versa.

Static methods

staticfillArray<T>(itr:() ‑> T):Array<T>

Fills an array with the result of a simple iterator.

@:has_untypedstaticgetModuleVarargs():Table<Int, String>

Returns the module-level varargs (...) passed to the Lua chunk. Useful in environments like ComputerCraft where script arguments are only available via module-level varargs, not _G.arg.

staticisShellAvailable():Bool

Simple test for the presence of an available shell.

staticinlinepatternQuote(str:String):String

Perform Lua-style pattern quoting on a given string.

staticinlineprint(v:Dynamic):Void

Print the specified value on the default output.

staticinlineprintln(v:Dynamic):Void

Print the specified value on the default output followed by a newline character.