TLIST for INT's

BlitzMax Forums/BlitzMax Programming/TLIST for INT's

Sean Doherty(Posted 2006) [#1]
Hard to believe that I have not come across this before! It seems you can not put simple types in a Tlist because it is not an object. Is there something else that I can use to dynamically create a list of integers on the fly?


TartanTangerine (was Indiepath)(Posted 2006) [#2]
Do you have an example of your code. I am sure there is a reasonable way of doing what you want.


Perturbatio(Posted 2006) [#3]
http://www.blitzbasic.com/codearcs/codearcs.php?code=1585


Difference(Posted 2006) [#4]
You can cast your ints to strings.

mytlist.Addlast(string myint)

and

myint = String ( mytlist.First() ).ToInt()


FlameDuck(Posted 2006) [#5]
Or create proper Integer wrapper objects, like in Java.