Speaking of strings, I just saw one of zep's tweets that had this in it:
?"MUSIC"
Did anyone else know that this is shorthand for PRINT("MUSIC")? I don't think it's standard Lua. It's more a BASIC thing. It's not in the manual.
I could shorten my Pi-Ko-Pon game a bit with this...
Edit: Well, maybe. It has to be by itself on a line, and it has to be at the start of the line. Still, useful for printing vars at the prompt:
> STR="THIS IS HANDY" > ?STR "THIS IS HANDY" > |
Worth noting: It calls PRINT(), so if you've overridden PRINT(), your routine will get called when you use the ? operator.
P#24329 2016-07-02 19:37 ( Edited 2016-07-27 06:12)
Yea, that does seem odd...
PICO-8 is what was originally going to be LEX500, so maybe it's leftover from that?
P#24363 2016-07-02 23:45 ( Edited 2016-07-03 03:45)
[Please log in to post a comment]