Quote:
Originally Posted by jake13jake
Yea, this would be a good example of where I'd want to use a struct. Stefan, so much of my scripting would be cleaner if you had structs in GS2. Instead I'm stuck using parallel arrays, and ugly use of makevar.
|
PHP Code:
function onCreated() {
temp.blah = new TStaticVar();
temp.blah.var1 = "hey";
temp.blah.var2 = "look";
temp.blah.var3 = "It's a struct!";
CheckStruct(temp.blah);
}
function CheckStruct(structvar) {
echo(structvar.var3);
}