"_" is a variable


SP4CEBAR 2024-01-30 14:24

_ = 0 is valid

SP4CEBAR 2024-01-30 15:06

And so is

SP4CEBAR 2024-01-30 15:08

I saw it in the reserved keywords

Timo 2024-01-30 16:55

Yes, why not :)

was8bit 2024-01-31 02:45

Ooo…. Coool :)

Timo 2024-01-31 11:04 (Edited)

LET was used in the very first versions of BASIC to assign variables. I probably just implemented it for fun, but didn't mention it in the manual. There is no reason to use it.
And "_" is a valid character for variable names. Because single character names are valid, the underscore is no exception. It didn't came to my mind that anyone would call variables like that though...

SP4CEBAR 2024-01-31 15:16

Thanks for the explanation!

Log in to reply.