# New Ticket Created by Chris Dolan # Please include the string: [perl #63154] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=63154 >
The simple attached patch allows embedded code in PGE to call back
into Rakudo. The double curlies are still necessary due to PGE
implementation details. With this patch the following simple
examples work:
% perl6 -e '"" ~~ m/:lang(Perl6) {{ say "hi"; }}/'
% perl6 -e '"" ~~ m/:lang(Perl6) {{ say 2+2; }}/'
% perl6 -e '"" ~~ m/:lang(Perl6) {{ say 2**45; }}/'
% perl6 -e '"" ~~ m/:lang(Perl6) {{ say exp(1); }}/'
% perl6 -e '"" ~~ m/:lang(Perl6) {{ say pi; }}/'
The invoker created by this patch does not perform any exception
handling, nor does it return a value. In that sense, it's probably
incorrect...
git pull git://github.com/chrisdolan/rakudo.git pge-invoke
0001-Add-invoke-method-to-perl6-HLLCompiler-to-allow-em.patch
Description: Binary data
