This is one way of creating a dynamic array in Oxygen:I think I need to be able to allocate memory and to assign a pointer to it, i.e., dynamic arrays.
Supposing you wanted to create a dynamic array of vectors:
It is possible to overlay an array onto any memory space, but you have to take care of bounds checking. Oxygen's arrays are primevaltype vector single x,y,z dim as vector byref v @v=getmemory 1000*sizeof vector v[100]<=10,11,12, 20,21,22 print v[101].y 'displays 21 freememory @v
Bookmarks