I wanted to create a way to store data for user use. The goal was to create memory space which:
- Acted like an array (basically just a list that could be manipulated easily)
- Was able to store session data in memory without doing hard drive storage.
- Had nameable lists, so you didn't have to remember just a computer assigned address
After thinking about it on and off for about 3 days, I believe I have a solution. My method is to use an array of arrays. Now, everyone knows that arrays are managed through indexes, which doesn't fit my last goal. So, my method for that was a name-to-index hash. When creating a new data set, the system pushes a blank array into the main array, figures out it's index, and maps that in the hash to your specified name.
The really cool thing is that this method appears to work. I really would not have been surprised if it didn't. I am still working on some of the methods for it, and then I need to integrate it into the code. It is currently in it's own program for demo purposes.
I'm pretty psyched that this idea works though. It should be a great way of doing what I had wanted.