Skip to content

Commit

Permalink
[GGE::Exp] s/undef/Mu/
Browse files Browse the repository at this point in the history
These days, using 'undef' produces a runtime error. So we use Mu instead.
It's debatable whether it should really be Nil, though. Time will tell.
  • Loading branch information
Carl Masak committed May 22, 2010
1 parent d153215 commit beae32c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/GGE/Exp.pm
Expand Up @@ -207,7 +207,7 @@ class GGE::Exp is GGE::Match {
local-branch('%1_cgen');
}
when '%1_cont' {
%0 = undef;
%0 = Mu;
goto('fail');
}
when '%1_cgen' { ]], $indexing, $label);
Expand All @@ -218,7 +218,7 @@ class GGE::Exp is GGE::Match {
$captback.emit('$captscope.delete(%0);', $cname);
}
else {
$captback.emit('%0 = undef;', $indexing);
$captback.emit('%0 = Mu;', $indexing);
}
}
}
Expand Down

0 comments on commit beae32c

Please sign in to comment.