3 ms·
Here come the traumatic memories of doing If/Then/Goto on TI-Basic, not understanding the Else or End tokens at all. Turns out each If/Then opens a new stack fr
by zeta0134 6y ago
Here come the traumatic memories of doing If/Then/Goto on TI-Basic, not understanding the Else or End tokens at all. Turns out each If/Then opens a new stack frame, and because I was never closing them with the corresponding tokens, memory slowly filled while the program ran. You could therefore get a high score of exactly 203 on my PONG clone before it crashed.
Good times! But seriously, take a few minutes to learn your tools properly if you use them more than once, it'll make things so much easier. :)
- devenblake 6y agoAh, I remember this! Lbl A If 1=1 Then Goto A Will always crash after a couple seconds. Used to show it to my friends sometimes as a gag but it sucked to have to work around it. (TI-BASIC uses = for equality comparison (iirc this includes comparing strings(?)) and -> as a single arrow symbol (STO on the keypad) for variable assignment (5->A for example is the same as A = 5 in Python).)