Talk:Variable

From C64-Wiki
Jump to: navigation, search

Incorrect bad variable names[edit]

According to testing in WinVICE, https://i.imgur.com/LtYoPfs.png, FIRSTLY% seems to be valid. --Sgeo (talk) 06:37, 25 August 2018 (CEST)

Did you know, why it works? --Jodigi (talk) 07:12, 25 August 2018 (CEST)
I have some guesses, maybe because ST is a special variable and not a keyword? Someone should probably check the BASIC source if that makes a difference towards being allowed. Also for special variables, if you use a different type that the special variable's type, it seems fine to use the same name (I can set STAR% but not STAR). Also things could be different in other versions of BASIC.