GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


Object thingies by Chunky_Ks
1
 
Hopefully it's pretty obvious what I want to do; if not, I want to see this output:

Next line is %bar.a
Fluffy
Next line is %bar.a
Bunnies



function blah(%bar) {
    echo("Next line is %bar.a");
    echo(%bar.a);
}

%fzorgle.ck[0].a = "Fluffy";
%fzorgle.ck[1].a = "Bunnies";

blah(%fzorgle.ck[0]);
blah(%fzorgle.ck[1]);