Speaking of strings, I just saw one of zep's tweets that had this in it:
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.
[Please log in to post a comment]