Skip to content

Commit

Permalink
Regexes capture returns
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Oct 14, 2010
1 parent b6f56c0 commit dc83727
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Niecza/Actions.pm
Expand Up @@ -385,6 +385,7 @@ sub regex_def { my ($cl, $M) = @_;
proto_too => ($scope eq 'has' ? $unsymtext : undef),
body => Body->new(
ltm => $lad,
returnable => 1,
class => 'Regex',
type => 'regex',
signature => $sig->for_regex,
Expand Down
2 changes: 1 addition & 1 deletion src/RxOp.pm
Expand Up @@ -617,7 +617,7 @@ use CgOp;
extends 'RxOp';

has block => (isa => 'Op', is => 'ro', required => 1);
sub opzyg { $_->block }
sub opzyg { $_[0]->block }

sub code {
my ($self, $body) = @_;
Expand Down

0 comments on commit dc83727

Please sign in to comment.