08-23-2022, 02:08 PM
(08-23-2022, 12:50 PM)Jack Wrote: your solution is better of course
if in my example one could simply swap pointers, that is, make the temporary array point to the member data that would be cool and much faster than copying back and forth
it may be possible to do in C, not sure it's possible in basic
It was one of my favorite features of Powerbasic back in the 90's. I really, really could use linked lists where entries could be built and destroyed without having to worry about how many elements are in the list (except of course for RAM use). Not sure how close _mem commands and _offset let us get just yet.
Currently I want to be able to have a cellmap of an environment where every cell may or may not have a linked list of a different number of elements within that cell. Even in this day and age the brute force approach of a multi-dimensional array just takes up too much RAM for the scale I'm thinking of.