Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Compiling pure Sinclair Basic
#3
--explicit enforces you to use DIM.
Try to use DIM to declare variables as bytes, ubytes, integers and uintegers. This will speed up your program (by default the type is guessed, and could be not accurate). Fixed is for decimal numbers from -32767.xxxx to 32767.xxx aprox. And Floats are the Sinclair BASIC floats, they have much more precision, but are also bigger and slower (you don't usually need that).

DIM (declaring variables, not only arrays)
https://zxbasic.readthedocs.io/en/docs/dim/

Types:
https://zxbasic.readthedocs.io/en/docs/types/
Reply


Messages In This Thread
Compiling pure Sinclair Basic - by Jodo - 07-10-2020, 12:36 PM
RE: Compiling pure Sinclair Basic - by Jodo - 07-10-2020, 01:56 PM
RE: Compiling pure Sinclair Basic - by boriel - 07-10-2020, 09:55 PM
RE: Compiling pure Sinclair Basic - by Jodo - 07-11-2020, 07:15 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)