Re: something wrong with argument binding in function calls

2005-03-02 Thread Jonathan Scott Duff
On Wed, Mar 02, 2005 at 12:21:56PM -0500, Abhijit Mahabal wrote: > the file examples/hanoi.p6 should work correctly, but does not. > Something is going wrong in the recursion. [ *poof* ] > > I plan to explore this more later today. Great! I'd checked that example in knowing that there was a prob

Re: something wrong with argument binding in function calls

2005-03-02 Thread Abhijit Mahabal
A simpler buggy version: sub g($x, $y){ say "$x $y"; h($y, $x); } sub h($x, $y){ say "$x $y"; } g(10, 15); = This prints: 10 15 15 15 --abhijit Abhijit Mahabal wrote: the file examples/hanoi.p6 should work correctly, but does not. Something is going w

something wrong with argument binding in function calls

2005-03-02 Thread Abhijit Mahabal
the file examples/hanoi.p6 should work correctly, but does not. Something is going wrong in the recursion. = [EMAIL PROTECTED] trunk]$ ./pugs examples/hanoi.p6 ndisks = 3 AS AS SS AB SS SB SB = A modified version that also prints out what arguments