[svn:parrot] r41901 - trunk/compilers/nqp/src/Grammar

pmichaud at svn.parrot.org pmichaud at svn.parrot.org
Sat Oct 17 15:09:26 UTC 2009


Author: pmichaud
Date: Sat Oct 17 15:09:24 2009
New Revision: 41901
URL: https://trac.parrot.org/parrot/changeset/41901

Log:
[nqp]:  Fix root_hll fetch problem introduced by pmichaud-- in r41871.

Modified:
   trunk/compilers/nqp/src/Grammar/Actions.pir

Modified: trunk/compilers/nqp/src/Grammar/Actions.pir
==============================================================================
--- trunk/compilers/nqp/src/Grammar/Actions.pir	Sat Oct 17 13:56:57 2009	(r41900)
+++ trunk/compilers/nqp/src/Grammar/Actions.pir	Sat Oct 17 15:09:24 2009	(r41901)
@@ -799,8 +799,7 @@
 ##        if ($<sym> eq 'class') {
 ##            my $classpast :=
 ##                PAST::Op.new(
-##                    PAST::Var.new( :name('P6metaclass'), :scope('package'),
-##                                   :namespace([]) ),
+##                    ...P6metaclass...,
 ##                    ~$<name>,
 ##                    :pasttype('callmethod'), :name('new_class')
 ##                );
@@ -828,9 +827,8 @@
     $S0 = match['sym']
     if $S0 != 'class' goto class_done
     .local pmc classvar, classop
-    $P0 = get_hll_global ['PAST'], 'Var'
-    $P1 = new ['ResizablePMCArray']
-    classvar = $P0.'new'( 'name'=>'P6metaclass', 'scope'=>'package', 'namespace'=>$P1)
+    $P0 = get_hll_global ['PAST'], 'Op'
+    classvar = $P0.'new'( 'inline'=>'%r = get_root_global ["parrot"], "P6metaclass"' )
     $P0 = get_hll_global ['PAST'], 'Op'
     $S0 = match['name']
     classop = $P0.'new'( classvar, $S0, 'pasttype'=>'callmethod', 'name'=>'new_class')


More information about the parrot-commits mailing list