[mtasc] Declaring a type for a list item
erixtekila
erixtekila at dotgeek.org
Thu Mar 17 00:19:06 CET 2005
Hi list,
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 [0]: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 ??!
-----------
erixtekila
http://blog.v-i-a.net/
More information about the mtasc
mailing list