From beae32c8ab3eeff940995a613bc4344c30b2e090 Mon Sep 17 00:00:00 2001 From: Carl Masak Date: Sat, 22 May 2010 16:35:17 +0200 Subject: [PATCH] [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. --- lib/GGE/Exp.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/GGE/Exp.pm b/lib/GGE/Exp.pm index 4389d95..2757c12 100644 --- a/lib/GGE/Exp.pm +++ b/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); } } }