Parser interprets expressions in commands wrong
say toString(1);
bad argument #0 (string expected, got function)
say ""..toString(1);
bad argument #1 (string expected, got number)
Comments (18)
-
-
reporter Uhm, should be 2.1, I used "MobTalker2-1.6.4-0.3.1-alpha".
-
Seems to be a specific issue with commands. The parser derps and decides that toString is actual a variable access and (1) is an expression in parentheses.
As a temporary workaround, wrap the call in parentheses to force the parser to interpret it correctly.
say ( toString( 1 ) ); say "" .. ( toString( 1 ) );
-
- changed title to Parser interprets expressions in commands wrong
- changed version to 2.1
- edited description
-
- changed status to open
-
- removed version
Removing version: 2.1 (automated comment)
-
This issue has been ongoing for a while now. Setting this to critical so it gets fixed before the next minor version bump.
-
Wait, setting the version is wrong, that should be Milestone...
-
- changed status to resolved
-
reporter Seems to be still persistant in MT0.5.0, same error with the inital code samples.
-
- changed status to open
-
-
- changed status to resolved
Hopefully fix
#10for good.→ <<cset b9c617771ce0>>
-
reporter Still persistent, with the same errors with the initial code samples.
-
- changed status to open
sigh
-
Solving this will require a syntax change. Combine this with
#26 -
- changed milestone to 3.0.0
-
- changed status to resolved
- Log in to comment
is this actually for 2.0 or 2.1? Because it's filled as for 2.0 :)