Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
404 page not found
#4
The thing here is that some "Keywords" will in the future implemented as pure BASIC functions or subs, like SCREEN$ and POINT nowadays.
And they will be bundled into "modules" (libraries). So, for example:
DRAW, PLOT, CIRCLE, POINT could be bundled in screen.drawing (or just screen) for example (what prevents this for being done is the strange "decorator-like" syntax of Sinclair BASIC: CIRCLE INK 7; PAPER 0; FLASH 1; <coords>

Another example:
RANDINT (unimplemented), RANDOMIZE, RND in random, and so on.

Compiling with --sinclair will autoinclude all standard functions automaticallly. Compiling with normal Boriel Basic will not, and the programmer will have to include them themselves to use them.

This is because many of these primitives are indeed ZX Spectrum specific, and the idea of the compiler is to allow other backends for other machines (e.g. someone can implement primitives for a Locomotive Basic / CPC or MSX one, which uses PSET instead of PLOT, etc).
---
Boriel
Reply


Messages In This Thread
404 page not found - by zarsoft - 02-26-2023, 07:18 PM
RE: 404 page not found - by ChewBakker - 01-31-2025, 10:35 AM
RE: 404 page not found - by Zoran - 03-07-2025, 05:58 PM
RE: 404 page not found - by boriel - 03-08-2025, 11:10 AM
RE: 404 page not found - by Zoran - 03-08-2025, 06:30 PM
RE: 404 page not found - by boriel - 03-08-2025, 07:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)