LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

text after RETURN and before END doesn't cause errors

Root / SmileBASIC Bug Reports / [.]

DFrostCreated:
Try this code:
COMMON DEF something
 RETURN'RETURNS NULL
 Hello this is cool.
END

Interesting. I think that SB thinks that these are custom functions. It's like Instr. Hello Instr. this Instr. is Instr. cool with an argument 0 I tried my name in Japanese form and it will Syntax Error out. 'Cause it uses Katakana and is not interpretable as code.

ikr i had the same theory It does cause errors when you use tokens, though.


... It does cause errors when you use tokens.
That isn't really true
COMMON DEF blablabla
RETURN
'--- Variants
GOOD+WEIRD'You can't add something to an instruction itself
BAD PROGRAMS+OTHERS'PROGRAMS+OTHERS is treated as an argument
SELF-EXPLANATORY? NO.'A SELF "instruction" can't be subtracted by an EXPLANATORY "variable". NO. would work fine.
'--- Back to code
END
I noticed that even using this DEF in a program won't crash it. (USE and EXEC included)