Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement Capture.perl
  • Loading branch information
sorear committed Feb 18, 2011
1 parent 7f006be commit dc52195
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/SAFE.setting
Expand Up @@ -166,6 +166,8 @@ my class Capture {
has $!positionals;
has $!named;

method perl() { "\\(|{ @(self).perl }, |{ %(self).perl })" }

method Capture () { self }
method list () { @( Q:CgOp { (box Parcel (getslot positionals fvarlist
(@ {self}))) } ) }
Expand Down Expand Up @@ -834,6 +836,7 @@ sub sort(*@bits) { @bits.sort }
sub _array_constructor(\$parcel) { _array_constructor($parcel) }
sub _hash_constructor(\$parcel) { my $r := (anon %hash = $parcel); $r }
sub _make_capture(|$c) { $c }
sub infix:<Z>(\|$pcl) {
Q:CgOp { (bif_zip (b 0) (unbox fvarlist (@ {$pcl}))) }
Expand Down

0 comments on commit dc52195

Please sign in to comment.