Open Ayplow opened 5 years ago
As this is a fundamental issue with the interpreter, there isn't any direct way to solve the problem as a modder. Until it is fixed, I would recommend never using multiple assignment with table elements
This is a somewhat extreme solution, but if we consider our scripts to be written in 'TTS Lua', then it is the natural consequence of that language not supporting this feature, and ensures that the scripts will be 'forward-'compatible with normal lua
Describe the bug Attempting to use multiple assignment on a table with a
__newindex
metamethod, only the first value will be forwarded to it.To Reproduce
Expected behavior In the official Lua interpreter, this code outputs
Tabletop Simulator Info
Additional context Upstream issue: moonsharp-devs/moonsharp#236