Skip to content

Commit

Permalink
Allow $¢ inside :lang( )
Browse files Browse the repository at this point in the history
  • Loading branch information
sorear committed Oct 24, 2010
1 parent 3268035 commit 38e1e66
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Niecza/Actions.pm
Expand Up @@ -858,7 +858,7 @@ sub mod_internal__S_p6adv { my ($cl, $M) = @_;
$v = $v->[0]{_ast};

if ($k eq 'lang') {
$M->{_ast} = RxOp::SetLang->new(expr => $v);
$M->{_ast} = RxOp::SetLang->new(expr => $cl->transparent($M, $v, sig => Sig->simple('')));
} elsif ($k eq 'dba') {
UNWRAP: {
$v->isa('Op::Paren') && ($v = $v->inside, redo UNWRAP);
Expand Down
4 changes: 2 additions & 2 deletions src/RxOp.pm
Expand Up @@ -708,12 +708,12 @@ use CgOp;
sub code {
my ($self, $body) = @_;
CgOp::rxsetclass(CgOp::obj_llhow(CgOp::fetch(
$self->expr->cgop($body))));
CgOp::subcall(CgOp::fetch($self->expr->cgop($body)), CgOp::newscalar(CgOp::rxcall('MakeCursor'))))));
}

sub lad {
my ($self) = @_;
[ 'Null' ];
[ 'Imp' ];
}

__PACKAGE__->meta->make_immutable;
Expand Down

0 comments on commit 38e1e66

Please sign in to comment.