View Single Post
  #10  
Old 10-18-2006, 05:16 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by jake13jake View Post
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);

__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote