Reason for REDIM bug identified

by (no login)

Firstly, it should be noted that:
redim a$(10)
redim a$(10)
works, but:
redim a$(10)
b%=1
redim a$(10)
causes a compilation error.

Here's some code from the QB64 compiler:
descstatic = 0
IF arraydesc THEN
IF idzarrayelements <> nume THEN '****comparison causing error
nerror (85)
END IF
IF idzstaticarray THEN descstatic = 1
END IF

idz... is referring to the incorrect variable's number of elements. In this case, b% (of course) has no elements but the nume aka. "number of elements" for a$() is 1.

This could have been a serious problem if it wasn't fixed. I'm glad it was reported. I will be fixed in Demo #8.

Posted on Jun 2, 2008, 3:16 AM
from IP address 122.104.44.123

Respond to this message   

Return to Index