Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
more pir:: to nqp:: rewrites
  • Loading branch information
moritz committed Jun 22, 2011
1 parent a60c86a commit d92d750
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Perl6/Grammar.pm
Expand Up @@ -2242,7 +2242,7 @@ grammar Perl6::Grammar is HLL::Grammar {
# Find opener and closer and parse an EXPR between them.
# XXX One day semilist would be nice, but right now that
# runs us into fun with terminators.
my @parts := pir::split__Pss(' ', $opname);
my @parts := nqp::split(' ', $opname);
if +@parts != 2 {
pir::die("Unable to find starter and stopper from '$opname'");
}
Expand Down
2 changes: 1 addition & 1 deletion src/Perl6/SymbolTable.pm
Expand Up @@ -463,7 +463,7 @@ class Perl6::SymbolTable is HLL::Compiler::SerializationContextBuilder {
$precomp := self.compile_in_context($code_past);

# Fix up Code object associations (including nested blocks).
my $num_subs := pir::elements__IP($precomp);
my $num_subs := nqp::elems($precomp);
my $i := 0;
while $i < $num_subs {
my $subid := $precomp[$i].get_subid();
Expand Down
2 changes: 1 addition & 1 deletion src/old/core/Any-list.pm
Expand Up @@ -24,7 +24,7 @@ augment class Any {
}

our Str multi method join($separator = '') {
~pir::join__SsP($separator, self.flat.eager);
~nqp::join($separator, self.flat.eager);
}

multi method elems() {
Expand Down
4 changes: 2 additions & 2 deletions src/old/core/EnumMap.pm
Expand Up @@ -44,7 +44,7 @@ class EnumMap is Iterable does Associative {
}

method elems() {
pir::elements__IP($!storage)
nqp::elems($!storage)
}

method exists($key) {
Expand Down Expand Up @@ -82,7 +82,7 @@ class EnumMap is Iterable does Associative {
gather {
my $iter = pir::iter__PP($!storage);
while pir::istrue__IP($iter) {
my $iter_item = pir::shift__PP($iter);
my $iter_item = nqp::shift($iter);
take Pair.new(key => ~$iter_item.key, value => $iter_item.value);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/old/core/List.pm
Expand Up @@ -17,7 +17,7 @@ augment class List does Positional {
return False unless @indices;
while @indices && @indices.shift -> $key {
return False if $key < 0
|| !pir::exists__IQi(self!fill($key+1), $key);
|| !nqp::existspos(self!fill($key+1), $key);
}
True;
}
Expand Down

0 comments on commit d92d750

Please sign in to comment.