newclass P1, "Foo" new P2, .PerlString set P2, "init" setprop P1, "BUILD", P2 addattribute P1, ".i" addattribute P1, ".j" set I10, 0 set I11, 500000 find_type I12, "Foo" loop: new P3, I12 inc I10 lt I10, I11, loop new P3, I12 classoffset I0, P3, "Foo" getattribute P2, P3, I0 print P2 print "\n" end .namespace ["Foo"] .pcc_sub init: classoffset I0, P2, "Foo" new P10, .PerlInt set P10, 10 setattribute P2, I0, P10 inc I0 new P10, .PerlInt set P10, 20 setattribute P2, I0, P10 invoke P1