Although I purchased PB quite some time ago, I never really looked into it much, which is why I've placed this query in the beginner's forum

Code: Select all
;Linked list/pointer exercise
NewList mylist.s()
AddElement (mylist())
mylist () = "element 1"
AddElement (mylist())
mylist () = "element 2"
*ptr = FirstElement (mylist())
Debug mylist()
;Debug PeekS(PeekL(*ptr + 8))
*ptr = NextElement (mylist())
Debug mylist()
;Debug PeekS(PeekL(*ptr + 8))
What really confuses me is if I replace NextElement (mylist()) with LastElement (mylist)), the code runs flawlessly! (Even with the weird pointer stuff!) I've asked about this on IRC, and for one person they had said that the code worked either way..? Making me wonder if maybe I'm just on crack :roll:
Anyways.. I've been sure to update to 3.92 using the SmartUpdate program, but perhaps if I see more people claiming this works for them, I will just re-install from scratch!
Any help will be appreciated!
