[mtasc] Declaring a type for a list item
erixtekila at dotgeek.org
Thu Mar 17 00:19:06 CET 2005
Maybe this one should be very easy, but i can't get to figure out how
it could be done ?!
Is it possible to type check a list item ?
With array and associative array, what could be the sentence ?
var aList :MyClass; // Gives error.
var aAssos ["index"]:MyClass // same
var aAssos ["index"]:MyClass = new MyClass(); // isn't permitted
because you've got to initialize variables before assignate value,
indeed with mtasc.
Any clue ?
This should be easy, but I can't get it ??!
More information about the mtasc