Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mem arrays
#5
(08-23-2022, 12:50 PM)Jack Wrote: your solution is better of course Smile
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.
Reply


Messages In This Thread
mem arrays - by James D Jarvis - 08-23-2022, 04:45 AM
RE: mem arrays - by Jack - 08-23-2022, 11:49 AM
RE: mem arrays - by James D Jarvis - 08-23-2022, 12:43 PM
RE: mem arrays - by Jack - 08-23-2022, 12:50 PM
RE: mem arrays - by James D Jarvis - 08-23-2022, 02:08 PM
RE: mem arrays - by SpriggsySpriggs - 08-31-2022, 01:14 PM
RE: mem arrays - by mdijkens - 08-31-2022, 02:37 PM



Users browsing this thread: 1 Guest(s)