Closed ili3p closed 8 years ago
The issue is only present in Lua 5.1 and it is there to prevent likely bugs from function calls that spread across lines, like in the case above. The fix is to remove the new line characters and make the function calls one line. http://lua.2524044.n2.nabble.com/Ambiguous-syntax-td7644848.html#d1355301287000-706
I have to say, I agree with Lua 5.1. The code in s2sa/models.lua
is very hard to understand.
We plan on refactoring/cleaning up the code soon. Please bear with us in the meanwhile :)
I get this error when running the model:
The line in question is:
And the same issue is present in a couple of places in
s2sa.models
. The issue isusePrealloc
returns self and then we call again a function on this returned self. Changing this to:creates other issues later on.