![]() |
|
Error on last version of the compiler (solved) - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15) +---- Thread: Error on last version of the compiler (solved) (/showthread.php?tid=2563) |
Error on last version of the compiler (solved) - zarsoft - 2024-10-18 My program works when compiled in version 116 but does not work when compiled in version 117. Example: - select 3 discs. - move from 1 to 3 - move from 3 to 1 It gives an error in the last version. (see attached files)
NewCompiler.zip (Size: 16.87 KB / Downloads: 495)
RE: Error on last version of the compiler - boriel - 2024-10-19 I recompile it with v1.17.2 and it worked as in 1.16. So the bug is introduced in the 1.17.3-beta. Thanks for the report. Let me investigate it. RE: Error on last version of the compiler - boriel - 2024-10-19 On top of that, I see this construct, which is not allowed: Code: Sub any_nameDATAs cannot be declared within a function, because they can contain expressions like this one: Code: Sub any_nameThis will use x = 0 (and might even crash, untested), as the value of x is never known. So bear in mind that the next beta will not allow the PROCEDURE DataChars in your program. For the moment, this bug has been fixed (still allowing DATA inside SUBs and FUNCTIONS). See here for further info: https://github.com/boriel-basic/zxbasic/issues/835 RE: Error on last version of the compiler - boriel - 2024-10-20 Okay. Try this new beta and let me know if it works :-) http://www.boriel.com/files/zxb/zxbasic-v1.17.3-beta19.tar.gz http://www.boriel.com/files/zxb/zxbasic-v1.17.3-beta19.zip http://www.boriel.com/files/zxb/zxbasic-v1.17.3-beta19-win32.zip http://www.boriel.com/files/zxb/zxbasic-v1.17.3-beta19-linux64.tar.gz http://www.boriel.com/files/zxb/zxbasic-v1.17.3-beta19-macos.tar.gz RE: Error on last version of the compiler - zarsoft - 2024-10-20 Works, Thanks. And thanks for the clarification about DATE. |