Open Benjamin-Dobell opened 4 years ago
Stock Lua REPL
> print() > print(table.unpack({}, 1, 0))
> print()
> print(table.unpack({}, 1, 0))
MoonSharp REPL
> print() > print(table.unpack({}, 1, 0)) nil
> print(table.unpack({}, 1, 0)) nil
Looks like DynValue.NewTuple is the issue:
DynValue.NewTuple
https://github.com/moonsharp-devs/moonsharp/blob/4e748a7a74af04b589af1b3e1aaa2d66d8b36a57/src/MoonSharp.Interpreter/DataTypes/DynValue.cs#L322-L323
However, other parts of MoonSharp are probably reliant on this behaviour.
Stock Lua REPL
MoonSharp REPL
Looks like
DynValue.NewTuple
is the issue:https://github.com/moonsharp-devs/moonsharp/blob/4e748a7a74af04b589af1b3e1aaa2d66d8b36a57/src/MoonSharp.Interpreter/DataTypes/DynValue.cs#L322-L323
However, other parts of MoonSharp are probably reliant on this behaviour.