It's not clear to me if the 'io' library is going to be supported.
Currently I'm trying to use existing Lua packages, like an XML parser ([Login to see the link]) and I'm getting lot of problems due to missing 'io'. Should I replace all uses of 'io' with LuaRT File and console APIs ?
Also, I'm not sure the management of command line arguments works properly.
According to the official Lua reference: "Lua collects all command-line arguments in a global table called arg. The script name goes to index 0, the first argument after the script name goes to index 1, and so on. Any arguments before the script name (that is, the interpreter name plus its options) go to negative indices"
But in LuaRT:
- everything seems shifted right by one index, when running a program from the IDE (no debug)
- even worse when the IDE starts the program in debug mode (a temporary path appears in the arg table)
- the exe file is passed at index 0, followed by arguments (if any), this is more in line with the official specs