You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried with and without brackets, different datatypes and same error. Syntax ok according to wiki (!). Save "test" DATA does compile and presumable saves all data?
The text was updated successfully, but these errors were encountered:
Unfortunately, SAVE "xxx" DATA s for arrays is no longer supported and it's technically almost impossible to implement it for arrays of strings. This is because arrays of strings are very dynamic and not stored in a continuous region of memory like in Sinclair BASIC. So this feature will be removed. Only SAVE "test" DATA (to save al the program state) will be supported.
That said, it's possible to SAVE an array of numbers:
SAVE "test" CODE @s(0), 16 * 5
In this case 16 = Number of elements of the array, 5 = number of bytes of each element (element size). But it won't work for strings.
This:
DIM s(16)
SAVE "test" DATA s
Fails to compile with:
test.bas:2: error: Syntax Error. Unexpected token 's' <ARRAY_ID>
Tried with and without brackets, different datatypes and same error. Syntax ok according to wiki (!).
Save "test" DATA does compile and presumable saves all data?
The text was updated successfully, but these errors were encountered: