Date: Fri, 1 Aug 2003 22:46:29 +0200 From: St�phane Payrard <[EMAIL PROTECTED]>
I am trying to learn about continuations and Parrot. I hit a problem of register allocation. I don't know if it is a miscomprehension from me or a bug. Probably the former. Apparently P16 is used both for my Perlhash and the Sub. Below are the beginning of a pdb session and the PIR listing. This is very similar to the problem I encountered using coroutines to implement iterators. My solution is to push all local variables onto the user stack before invoke, then pop them off afterwards. (Similar to how the coroutine tests are written.) I'm not following your code well enough to be sure, but something similar in the mk_one routine (save test, invoke P1, restore test) might be appropriate. --kag
