bmax equvalent of this

BlitzMax Forums/BlitzMax Beginners Area/bmax equvalent of this

DREAM(Posted 2008) [#1]
a.mytype=first mytype


is there such a thing i know i can addlast and addfirst but is there anything like a getfirst or getlast.......


tonyg(Posted 2008) [#2]
TList has a First and Last Method which returns an object.


Perturbatio(Posted 2008) [#3]
Here's how I handle types, it makes things much easier to manage.



Each type then has it's own list that can be accessed directly or iterated through either via an instance of the type:
a.list
or through the type itself:
TMyType.list



DREAM(Posted 2008) [#4]
seems so simple so i see it...thanks....