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.

P#67711 2019-09-15 21:24 ( Edited 2019-09-29 01:49)

@alanxoc3

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

P#68241 2019-09-29 00:21

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

P#68245 2019-09-29 01:49 ( Edited 2019-09-29 01:50)

[Please log in to post a comment]

Follow Lexaloffle:        
Generated 2020-02-25 12:11 | 0.024s | 2097k | Q:32