# New Ticket Created by Jonathan Sillito # Please include the string: [perl #22717] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=22717 >
"[perl #22633] [PATCH] convert parrot to continuation passing style" is outdated. Attached is a less ambitious patch to convert parrot to continuation passing style. Here is a summary of the ops (recall that the continuation gets stored in P1): invokecc # standard invoke invoke P1 # standard return invoke # tail call (leave P1 as is) invokecc P1 # return as from coroutine Other cool stuff is possible too. The details: adds invokecc() and invokecc(in PMC) ops adds new_continuation_pmc function to sub.c/.h classes/sub.pmc now ignores next argument to invoke changes to t/pmc/sub.t & languages/imcc/t/syn/bsr.t ------------------ jonathan sillito -- attachment 1 ------------------------------------------------------ url: http://rt.perl.org/rt2/attach/59457/44076/5f209f/cps.patch
cps.patch
Description: cps.patch