[futurebasic] Re: [FB] [FB^3] FOR/NEXT Bug

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : September 1999 : Group Archive : Group : All Groups

From: Chris Stasny <staz@...>
Date: Mon, 20 Sep 1999 11:35:04 -0500
>In FB2, all FOR/NEXT loops are executed at least once. In FB^3 _some_ loops
>are not executed if the start value is greater than the finish value. The
>example program in FB2 prints hello 1, hello 2, hello 3, hello 4. In FB^3
>it only prints hello 3, hello 4.
>
>When I first saw the skipping (in FOR j=2 TO 1) I thought "Goodie! FB is at
>last like C, Fortran, Pascal, Quickbasic, RealBasic...". But it seems that
>this long overdue improvement has not been applied consistently. None of
>the loops should execute, and, of course, the documentation should reflect
>the changed behaviour.
>
>A bug report has been sent to Staz.
>
>'---------------------------------------------
>WINDOW 1
>DIM j, start, finish
>start=2
>finish=1
>
>FOR j=2 TO 1
> PRINT "hello 1"
>NEXT
>
>FOR j=start TO 1
> PRINT "hello 2"
>NEXT
>
>FOR j=start TO finish
> PRINT "hello 3"
>NEXT
>
>FOR j=2 TO finish
> PRINT "hello 4"
>NEXT
>
>DO
>UNTIL FN BUTTON
>'------------------------------------------------
>

Bug confirmed. We're on it.



Best,

-STAZ  ~)~

800.348.2623 Orders  http://www.stazsoftware.com
228.255.7086 FAX     mailto:staz@...