Forum
S$(1) --> ERROR (solved) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: S$(1) --> ERROR (solved) (/showthread.php?tid=2499)



S$(1) --> ERROR (solved) - zarsoft - 11-13-2023

Code:
CONST w1$ AS STRING = "ERROR"
DIM w2$ AS STRING

w2$ = w1$
PRINT "-> ";w2$(1)
(this works)

Code:
PRINT "-> ";w1$
(this works)

Code:
PRINT "-> ";w1$(1)
(Error: constant is not a function)


RE: S$(1) --> ERROR - boriel - 12-07-2023

Try this new beta:
http://www.boriel.com/files/zxb/zxbasic-1.17.2-beta6.tar.gz
http://www.boriel.com/files/zxb/zxbasic-1.17.2-beta6.zip
http://www.boriel.com/files/zxb/zxbasic-1.17.2-beta6-win32.zip
http://www.boriel.com/files/zxb/zxbasic-1.17.2-beta6-linux64.tar.gz
http://www.boriel.com/files/zxb/zxbasic-1.17.2-beta6-macos.tar.gz

Note: This beta includes all prior corrections (Local array of Floats, etc).