Playmobil wrote: Tue May 24, 2022 9:18 pm
In GFABASIC, DIM dummy&(10), make an array from 0 to 10, so 11 elements...
In ST BASIC Sourcebook and Tutorial 1987 we have:
ST BASIC establishes the size of an array the first time you refer to it. The default size of an array is 10 rows by 10 columns (10,10). You can declare your own array dimensions with the DIM statement. DIM TOTAL (5,50) defines TOTAL as an array with 5 rows and 50 columns.
In Tim Knight's Atari ST Basic Programming Book we have (more precise than the previous definition):
If you don't use OPTION BASE, any array of variables you set will start at element 0; so, if you type DIM A (5), you will have A (0), A (1), A (2), A (3), A (4) and A (5). However, many people prefer to start from the number 1 instead of 0 and just type OPTION BASE 1 for the matrix to start from element 1. OPTION BASE 1 followed by DIM A (5) will provide you with the variables A (1), A (2 ), A (3), A (4) and A (5). If you want to return to the default setting, just type OPTION BASE 0.
So I think it's a BUG from the ST BASIC Sourcebook and Tutorial 1987 ...