Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EXIT WHILE bug (*solved*)
#1
Try compiling this program:

Code:
function x() AS UBYTE
    return 1
end function

function y() AS UBYTE
    return 1
end function

WHILE x()
    IF NOT y() THEN
        EXIT WHILE
    END IF
END WHILE

It will generate the following compile error:

Code:
Error: Undefined label '__LABEL1'

Tested with latest ZX BASIC version.
Reply
#2
Unfortunately, this was a bug I introduced in the latest version, to produce a better / optimized code. :oops:
Could you download ZX BASIC 1.4.0-s1953 and check if it is fixed, please? :roll:
Reply
#3
It works now, thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)