Skip to content

Commit

Permalink
use Perl 6 arrays in Match objects
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 29, 2010
1 parent 6afdfbd commit 9de1eba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/builtins/Cursor.pir
Expand Up @@ -24,6 +24,11 @@ Cursor - Perl 6 cursor objects
.return ($P0)
.end

.sub 'new_array' :method
$P0 = new ['Array']
.return ($P0)
.end

=back

=cut
Expand Down
5 changes: 5 additions & 0 deletions src/builtins/Mu.pir
Expand Up @@ -525,6 +525,11 @@ Gets the object's identity value
.tailcall self.'shift'()
.end
.sub '' :vtable('push_pmc') :method
.param pmc value
.tailcall self.'push'(value)
.end
.sub 'list' :method
.tailcall '&infix:<,>'(self)
.end
Expand Down

0 comments on commit 9de1eba

Please sign in to comment.