Log In  


Cart #a_parsing_bug-0 | 2019-09-15 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

So, there is a parsing bug with the unique "+=", "-=", "*=", "/=", and "%=" PICO-8 flavored lua syntax. In normal lua, something like this:

b=odds[2]b=b-1

is valid syntax, treated as two separate expressions. That works in PICO-8, but this:

b=odds[2]b-=1

throws a syntax error. It's odd because this:

odds={1,3,5}b-=1

does not throw a syntax error. It seems to be only with the unique PICO-8 equals operators and directly after square brackets.

Fixing this could benefit people working on tweet carts as well as carts that are token & character/compression sensitive.



@alanxoc3

You posted this under Voxatron bugs not Pico-8 bugs.


Ah, good point. EDIT: now it is under pico-8.



[Please log in to post a comment]