Skip to content
Browse files

[GGE::Exp] s/undef/Mu/

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...
1 parent d153215 commit beae32c8ab3eeff940995a613bc4344c30b2e090 @masak committed May 22, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/GGE/Exp.pm
View
4 lib/GGE/Exp.pm
@@ -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);
@@ -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);
}
}
}

0 comments on commit beae32c

Please sign in to comment.
Something went wrong with that request. Please try again.