Linked lists

BlitzPlus Forums/BlitzPlus Programming/Linked lists

Synchronist(Posted 2003) [#1]
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?


Orca(Posted 2003) [#2]
You can link lists of types.


Synchronist(Posted 2003) [#3]
^^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...


Beaker(Posted 2003) [#4]
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?


Synchronist(Posted 2003) [#5]
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...


Orca(Posted 2003) [#6]
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*)