On Feb 5, 2006, at 8:17, Allison Randal wrote:

On Feb 4, 2006, at 16:51, Joshua Isom via RT wrote:
     41 callmethodcc P1, "dump"          -
P1=Object(PAST::Node)=PMC(0x50ba68),
    102 get_params PMC_C[29] (2), P0, I0         - , P0=PMCNULL,
I0=5289976
    106 repeat S0, "    ", I0    - , , I0=5289976

Okay, the problem seems to be that it's getting garbage values in "optional" integer parameters if the parameters aren't passed in. So, the PIR code is calling the 'dump' method with no parameters:

.sub "dump" method
    .param int level

The level argument isn't optional at all. Turning on argument count checks would prevent such errors.
It has to be:

.sub "dump" method
    .param int level :optional

Allison

leo

Reply via email to