Skip to main content
DelVar is a two-byte token
Source Link
lirtosiast
  • 21.7k
  • 5
  • 53
  • 127

If you find yourself using

0→G ;or any other variable ;other lines of code 

Then, you could use (to save 2 bytesa byte):

DelVar G;other lines of code 

This is because when you delete a variable (G), it becomes its default value, in this case, 0. Then, you could put another line after the DelVar statement, without a newline. Be careful when putting crucial control statements directly after a DelVar statement.

(Tested on TI-84)

If you find yourself using

0→G ;or any other variable ;other lines of code 

Then, you could use (to save 2 bytes):

DelVar G;other lines of code 

This is because when you delete a variable (G), it becomes its default value, in this case, 0. Then, you could put another line after the DelVar statement, without a newline. Be careful when putting crucial control statements directly after a DelVar statement.

(Tested on TI-84)

If you find yourself using

0→G ;or any other variable ;other lines of code 

Then, you could use (to save a byte):

DelVar G;other lines of code 

This is because when you delete a variable (G), it becomes its default value, in this case, 0. Then, you could put another line after the DelVar statement, without a newline. Be careful when putting crucial control statements directly after a DelVar statement.

(Tested on TI-84)

Source Link
Conor O'Brien
  • 40.4k
  • 3
  • 96
  • 182

If you find yourself using

0→G ;or any other variable ;other lines of code 

Then, you could use (to save 2 bytes):

DelVar G;other lines of code 

This is because when you delete a variable (G), it becomes its default value, in this case, 0. Then, you could put another line after the DelVar statement, without a newline. Be careful when putting crucial control statements directly after a DelVar statement.

(Tested on TI-84)