Just wait a few days and I will post BASICODE on GitHub, which includes most functions which are in M$ BASIC but not in SuperBASIC. This includes LEFT$, MID$, RIGHT$ and VAL. I wrote them as machinecode functions so that BASICODE programs (which are mostly based on M$ BASIC but use subroutines for machine-specific commands like CLS etc) could be run on the QL. These programs were distributed over the radio in the '80s but there's an archive now on GitHub containing hundreds of programs - mostly in Dutch though but also in German since it was popular in the former GDR too.ql_freak wrote:I also have renamed the function, cause it is no BASIC VAL() function. Look what VAL in Visual BASIC, C64 BASIC, ... does. The Spectrum VAL() function is special. So I choosed the name EVAL(expr$,error_result$). This is the same function name as in Python (which also has such a nice function). BTW: A normal BASIC compatible VAL() function (not Spectrum VAL) would be useful too.
I've updated my code from 1987 so it's compatible now with SMSQ/E and SBASIC - only need to clean things up a bit and write documentation (well there is, but in Dutch


Jan.