Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Arguments to .join should be treated as Stringy.
  • Loading branch information
pmichaud committed Jun 14, 2011
1 parent 2f7c19f commit e87a9ef
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/List.pm
Expand Up @@ -84,12 +84,14 @@ class List {
while $i < $elems {
pir::set__vQis($fsa, pir::repr_unbox_int__IP($i),
pir::repr_unbox_str__SP(
pir::set__PQi($!items, pir::repr_unbox_int__IP($i)).Str
pir::set__PQi($!items, pir::repr_unbox_int__IP($i)).Stringy
)
);
$i = $i + 1;
}
pir::perl6_box_str__PS(pir::join(pir::repr_unbox_str__SP($separator.Str), $fsa));
pir::perl6_box_str__PS(
pir::join(pir::repr_unbox_str__SP($separator.Stringy), $fsa)
);
}

method Int() { self.elems }
Expand Down

0 comments on commit e87a9ef

Please sign in to comment.