haxe icon indicating copy to clipboard operation
haxe copied to clipboard

[lua] Global Var Args

Open TheDrawingCoder-Gamer opened this issue 3 years ago • 3 comments

I'm working on a computercraft script, and how it passes arguments is via calling the file with rest args. In lua, you are meant to obtain these via

local args = {...}

Given that within the main function, you can't access global ... (i've tried) it would be nice if you could i.e. add a ...rest to the main function.

TheDrawingCoder-Gamer avatar Jul 14 '22 02:07 TheDrawingCoder-Gamer

apparently Sys.args does this

sanity loss

TheDrawingCoder-Gamer avatar Jul 14 '22 03:07 TheDrawingCoder-Gamer

that's not what Sys.args does sanity loss

TheDrawingCoder-Gamer avatar Jul 14 '22 21:07 TheDrawingCoder-Gamer