At 4:23 AM +0300 8/4/03, Vladimir Lipskiy wrote:
Q1: Suppose I have the following call into a sub named "foo":

foo($var1, $var2, $var3);

What should I set in I1? Is it 3?

Nope. I2 should be 3, and I1 0. (Assuming you put those three parameters in the first three PMC registers, which is what you should do even in the unprototyped case)


And here:

foo($var1, @arr2, %hash3);

Is it still 3, since these aren't gonna be flattened?

I2 is still 3 and I1 0.


Q2: I'm calling without prototyping

foo($var1, $var2, $var3, ... , $var23);

Here, what should I place in I2?  Is it 11 (as we have P5-P15) or
23 (considering the P3 register)?

I2 should be 11, and I1 should be 12. -- Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to