Hi Charles,
is it possible to apply the s3_buffer approach in a similar way with e.g. floats? This is the task of Rosetta Code solved with a previous version of O2, which does not work this way any more:
'CREATE DYNAMIC ARRAY SPACES USING STRINGS
string sa=nuls 5* sizeof float
string sb=sa
'MAP ARRAY VARIABLES ONTO STRINGS
float a at *sa
float b at *sb
'ASSIGN SOME VALUES
a<=10,20,30,40,50
b<=60,70,80,90,00
'ADD ARRAY B TO A BY STRING CONCATENATION
sa+=sb
'TEST
print a[7] 'result should be 70
This is what I have achieved so far (shameful little):
redim float aa[5]
redim float bb[5]
aa = {10,20,30,40,50}
bb = {60,70,80,90,00}
print aa[4] + ", " + bb[2]
Adding two arrays like cc=aa+bb would be a tempting option, but it is also ok to assign the values individually.
Roland