Skip to content

release-1.6

Compare
Choose a tag to compare
@skx skx released this 18 Dec 19:53

This release was primarily aimed at improving the correctness of FOR loop handling, with regard to the handling of the termination condition (#73).

In addition to the bugfix of looping we added the ability to initialize 1D and 2D arrays, via the new DIM statement, this was implemented in #76, and the following example demonstrates their use:

 10 DIM a(10)
 20 LET a[3] = 3
 30 LET a[4] = "steve"
 40 FOR I = 0 TO 9
 50   PRINT I, a[I], "\n"
 60 NEXT I

2D-arrays are initialized as:

   10 DIM foo(10,10)

And get/set works as you'd expect:

    20 LET foo[3,3] = "*"
    30 PRINT foo[3,3], "\n"