Linked lists
BlitzPlus Forums/BlitzPlus Programming/Linked lists
| ||
I took the plunge and purchased B+ today. Very cool. But it appears to be missing a fundamental data structure, the linked list. Anyone know if this is going to be implemented in the future? |
| ||
You can link lists of types. |
| ||
^^True enough. The problem there is the supporting functions don't exist, Add Element, Insert Element, Delete Element, etc. I guess it could be done through a userlib and .dll... |
| ||
Type objects are fundamentally double-linked lists. You have: Insert obj.objType After obj2 Insert obj.objType Before obj2 Delete obj.objType etc What are you missing? |
| ||
Hmm, I'll check it out. Basically I need to be able to sort the data very quickly. I'm more familiar with linked lists as implemented in C, not a types (structs)... Thx for the info though, I'll just give it a go and see what happens... |
| ||
What I was referring to in my previous post was more along the lines of manually setting up your own lists. The insert,before,after,delete commands work for the whole list, which is okay-- until you want your objects in there own lists. Then you have to come up with additional structures and/or functions to manage ur lists manually.(sure would be nice if blitz automagically let us manage different lists of the same type *SIGH*) |