FAQ  •  Register  •  Login

EXIT WHILE bug (*solved*)

<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Wed Aug 19, 2015 5:09 pm

EXIT WHILE bug (*solved*)

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Aug 21, 2015 10:46 am

Re: EXIT WHILE bug

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:
<<

einar

Posts: 84

Joined: Sun Apr 08, 2012 9:33 pm

Post Fri Aug 21, 2015 12:15 pm

Re: EXIT WHILE bug

It works now, thank you!

Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 2 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO