Skip to content

Commit

Permalink
use $?METACLASS in two more places
Browse files Browse the repository at this point in the history
  • Loading branch information
bschmalhofer committed Jun 22, 2009
1 parent 81f82f3 commit cb625f0
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions src/pct/actions.pm
Expand Up @@ -740,14 +740,12 @@ method class_member_def($/) {
);

# create the attribute
our $?METACLASS;
my $call_meta_attribute :=
PAST::Op.new(
:pasttype('call'),
:name('pipp_meta_attribute'),
PAST::Var.new(
:name('metaclass'),
:scope('register')
),
$?METACLASS,
$member_name
);

Expand Down Expand Up @@ -956,15 +954,12 @@ method class_def($/, $key) {
}

# It's a new class definition. Make proto-object.
$block.push(
PAST::Op.new(
:pasttype('call'),
:name('pipp_meta_compose'),
PAST::Var.new(
:scope('register'),
:name('metaclass')
)
)
our $?METACLASS;
$block.push( PAST::Op.new(
:pasttype('call'),
:name('pipp_meta_compose'),
$?METACLASS
)
);

$?CLASS := '';
Expand Down

0 comments on commit cb625f0

Please sign in to comment.