Forum
string.bas errors when compiling with strict - 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: string.bas errors when compiling with strict (/showthread.php?tid=2544)



string.bas errors when compiling with strict - rbiondi - 02-23-2024

Hello,

I'm trying to compile my program with --strict option and getting some errors in string.bas:


Code:
zxbasic/src/arch/zx48k/library/string.bas:124: error: strict mode: missing type declaration for 's$'

I just fixed and tried to create a branch and send a merge request to zxbasic git repository but I'm not authorized.


Thank you,
Rogerio


RE: string.bas errors when compiling with strict - boriel - 02-23-2024

Thanks for reporting this.
Just create the Pull Request (you should be able, it's an open project and I will merge it.
Also, notice this is for arch zx48k. You should do the same for zxnext/, which has the same path, but replacing the arch infix.
Can you add this change to that file too, please?


RE: string.bas errors when compiling with strict - rbiondi - 03-01-2024

Hello,

I'll post the changes to both files. Thank you!

Rogerio