Marc Lehmann wrote: > I don't like the while loop, but I can't see how one can be avoided. I > wonder if I could just steal the pad at CvDEPTH + 1 by null'ing it. Yes, I think that would work. pad_push does this: if (depth > PadlistMAX(padlist) || !PadlistARRAY(padlist)[depth]) { if (depth > PadlistMAX(padlist) || !PadlistARRAY(padlist)[depth]) {... if (depth > PadlistMAX(padlist) || !PadlistARRAY(padlist)[depth]) {...padlist_store(padlist, depth, newpad); And padlist_store does: ary = PadlistARRAY(padlist); SvREFCNT_dec(ary[key]); ary[key] = val;Thread Previous | Thread Next