#1427: RetContinuation PMC
-------------------------+--------------------------------------------------
Reporter: bacek | Owner:
Type: deprecation | Status: new
Priority: normal | Milestone: 2.4
Component: core | Version: trunk
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
-------------------------+--------------------------------------------------
Comment(by coke):
Attached a patch which converts internal usage of RetCon into straight
Continuation.
All tests pass except t/op/calling.t #47:
{{{
.sub main :main
$P0 = eval("print \"Foo!\\n\"")
$P0()
end
.end
.sub eval
.param string code
code = ".sub main :main :anon\n" . code
code = code . "\n.end\n"
$P0 = compreg "PIR"
.tailcall $P0(code)
.end
}}}
Fails with:
invoke() not implemented in class 'String'
current instr.: 'main' pc 15
(/Users/coke/sandbox/parrot/t/op/calling_47.pir:3)
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1427#comment:4>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets