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

Wrongly typed variables outside of functions

Root / General / [.]

12Me21Created:
Type suffixes on function arguments don't do anything:
TEST "STRING"
DEF TEST NUMBER
 ?NUMBER 'this will be a string not ending in $
END
You can get the same results outside of functions!
GOTO @SKIP
DIM NUMBER[0]
@SKIP
NUMBER="STRING"
'now NUMBER is a string!
These variables act the same as OUT variables in functions. You can assign any value to them and they'll become that type.
DEF TEST OUT NUMBER
 NUMBER="STRING"
END