TList : AddLast etc...

BlitzMax Forums/BlitzMax Programming/TList : AddLast etc...

Did you know, that eachin is that intelligent to only return values of a certain type? I didn't until now...

 Type TA
 end type
 
 type TB
 end type
 
 
 local lst:TList=new TList
 
 lst.AddLast(new TA)
 lst.AddLast(new TB)
 
 for local obj:TA=eachin lst
 	print ("I'm only of Type TA")
 Next


Until now I thought that obj will be Null for TB-objects.

Blitzmax is such a lovely language!