![]() |
Error on last version of the compiler (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: Error on last version of the compiler (solved) (/showthread.php?tid=2563) |
Error on last version of the compiler (solved) - zarsoft - 10-18-2024 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) ![]() RE: Error on last version of the compiler - boriel - 10-19-2024 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 - 10-19-2024 On top of that, I see this construct, which is not allowed: Code: Sub any_name DATAs cannot be declared within a function, because they can contain expressions like this one: Code: Sub any_name This 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 - 10-20-2024 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 - 10-20-2024 Works, Thanks. And thanks for the clarification about DATE. |