Native stacks
Posted: Wed Jun 18, 2008 6:15 pm
Hi,
I've just a little wish again.
My wish is, to have native stacks in PureBasic with syntax like linkedlists.
My examples are better than my english....
Best regards
Wolf
PS: Hot german sausages for everbody who agrees this wish
I've just a little wish again.

My wish is, to have native stacks in PureBasic with syntax like linkedlists.
My examples are better than my english....
Code: Select all
Structure tTest
lX.l
lY.l
EndStructure
NewStack MyStack1.tTest ()
Push ( MyStack1 () )
MyStack ()\lX = 100
MyStack ()\lY = 100
Push ( MyStack1 () )
MyStack ()\lX = 150
MyStack ()\lY = 100
Foreach Pop ( MyStack1 () )
Debug MyStack1 ()\lX
Debug MyStack1 ()\lY
Next
Best regards
Wolf
PS: Hot german sausages for everbody who agrees this wish
