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
Last edited by Charles Pegge; 09-10-2011 at 18:00.
Nothing wrong with that at all.
I didn't see that way.
"You can't cheat an honest man. Never give a sucker an even break, or smarten up a chump." - W.C.Fields
Bookmarks