Rakudo Status and Parrot 2.0 (to be)

Vasily Chekalkin bacek at bacek.com
Sat Jan 16 11:38:16 UTC 2010


Moritz Lenz wrote:
> Vasily Chekalkin wrote:
>> Moritz Lenz wrote:
>>> Rakudo doesn't build on parrot HEAD since the CallSignature +
>>> CallContext merge (or whatever it was called), so it's kinda hard to
>>> figure out if there are any parrot bugs affecting Rakudo.
>> Try this patch. It should work.
> 
> I've tested it, in Rakudo's "ng" branch:

Oookey. It least this patch is required. But there is still some 
problems with returning values from "eval". I'm trying to fix it.

bacek at icering:~/src/rakudo$ git diff src/cheats/perl6-compiler.pir
diff --git a/src/cheats/perl6-compiler.pir b/src/cheats/perl6-compiler.pir
index fb81655..03bf0e8 100644
--- a/src/cheats/perl6-compiler.pir
+++ b/src/cheats/perl6-compiler.pir
@@ -8,7 +8,7 @@

    context_loop:
      if null context goto context_done
-    lexpad = context['lex_pad']
+    lexpad = getattribute context, 'lex_pad'
      lexpad_it = iter lexpad
    lexpad_loop:
      unless lexpad_it goto lexpad_done
@@ -19,7 +19,7 @@
      lexinfo[$S0] = $P0
      goto lexpad_loop
    lexpad_done:
-    context = context['outer_ctx']
+    context = getattribute context, 'outer_ctx'
      goto context_loop
    context_done:
      .return (lexinfo)


-- 
Bacek


More information about the parrot-dev mailing list