Thread: Gs3
View Single Post
  #88  
Old 06-16-2013, 07:16 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Just tested this on Zone, why... It didn't give any error at all.
PHP Code:
  var list:int[];
  list = {
12"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 ?
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion

Last edited by Gunderak; 06-16-2013 at 10:57 AM..
Reply With Quote