moonscript
moonscript copied to clipboard
Compiler broken with a\a\a
Compiling a\a.a
Compile error: Short-dot syntax must be called within a with block
Compiling a\a\a
The v0.5.0 compiler broke 😞
Same here 😢
It should break on both: a:a.a()
is not valid Lua, and a:a:a()
is definitely not valid Lua.
Wooops! My bad! You're true... (Tonight was late) it should be a.a\a!
This issue should be closed.
Well, I mean the compiler should not exit immediately but give some error messasge instead.
@buckle2000 - that is true; the issue should remain open as long as the compiler fatal-errors because of that.
What fixed this problem for me was changing it to a\b!\c
instead of just a\b\c
There's various different causes for this, the point is that the compiler needs to be able to tell the user that using the OOP syntax sugar doesn't work more than once per function call/stub creation.