12-22-2011, 06:50 PM
The random number generator I used is taken from C Numerical Recipes and is, in fact nearly the same this one (maybe my implementation is not that good :roll: I converted from C to Z80 asm by hand
). It should pass the same test this one.
Anyway we should consider them.
I was thinking other basics such QBasic or VBasic allows SUBS to be called without parenthesis. This way,
Can be called with
This will allow the user to effectively redefine a complete set of DRAW, RANDOMIZE, INK, etc... routines and will allow ZXBASIC to be more universal and no so speccy-oriented!
This way, ZX Spectrum users will have an implicit #include <spectrum.h> at the beginning (like when the --spectrum flag is used) and all will remain the same. But programs for other platform might not use such include, but other ones.
Well, that is just an idea.

Anyway we should consider them.
I was thinking other basics such QBasic or VBasic allows SUBS to be called without parenthesis. This way,
Code:
SUB mysub(a, b)
...
END SUB
Code:
mysub a, b
This way, ZX Spectrum users will have an implicit #include <spectrum.h> at the beginning (like when the --spectrum flag is used) and all will remain the same. But programs for other platform might not use such include, but other ones.
Well, that is just an idea.