Quote:
Originally Posted by Inverness
You seem to think varname.varname always means its an object, it doesn't, Graal is just compensating for bad scripting and that GS1 crap.
Personally I wish there was a serveroption to remove all GS1 compatibility, it would maybe stop some people from spewing crap like "GS1 is more logical like GS2", wtf?
|
Sorry i had remembered wrongly, checking my thread, it's the array that has to be TStaticVar.
Quote:
Originally Posted by Me in the other thread
I figured it out.
For an array to store objects it must be a TStaticVar;
PHP Code:
channel = new TStaticVar();
channel.join("chat_channel");
channel.create(topic, owner, channelname);
//Doesnt work:
test.add(channel);
echo(test[0].channelname);
//works:
test2 = new TStaticVar();
test2.add(channel);
echo(test2[0].channelname);
|