Skip to content

Commit

Permalink
Two more lists to list_s.
Browse files Browse the repository at this point in the history
  • Loading branch information
arnsholt committed Mar 24, 2013
1 parent 604609e commit 3bcd78a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/HLL/Compiler.pm
Expand Up @@ -657,7 +657,7 @@ class HLL::Compiler does HLL::Backend::Default {

# remove any empty items from the list
# maybe replace with a grep() once we have the setting for sure
my @actual_ns;
my @actual_ns := nqp::list_s();
for @ns {
nqp::push_s(@actual_ns, $_) unless $_ eq '';
}
Expand Down
4 changes: 2 additions & 2 deletions src/NQP/Actions.pm
Expand Up @@ -48,8 +48,8 @@ class NQP::Actions is HLL::Actions {

sub colonpair_str($ast) {
if nqp::istype($ast, QAST::Op) {
my @parts;
for $ast.list { @parts.push($_.value) }
my @parts := nqp::list_s();
for $ast.list { nqp::push_s(@parts, $_.value) }
nqp::join(' ', @parts)
} else {
$ast.value
Expand Down

0 comments on commit 3bcd78a

Please sign in to comment.