Just tested this on Zone, why... It didn't give any error at all.
PHP Code:
var list:int[];
list = {1, 2, "Test"};
Also curious, why this didn't work.
PHP Code:
//#GS3
class Person extends TStaticVar{
var nickname:string;
}
function onCreated():void{
//Create an array of type Person
var list:Person[];
//Create some Person objects.
var me:Person = new Person();
me.nickname = "Nick";
var them:Person = new Person();
them.nickname = "Someone";
//Add them to the list
list.add(me);
list.add(them);
//Echo each Person element in the list
for(var someone:Person in list){
echo("Name: "@someone.nickname);
}
}
It does nothing, no errors either.
Also will there be constructors?
Sorry for the spam, but will we be able to extend a TSocket

?