| |
perl.perl6.language |
> sub foo {
> my ($x,$y) = @_;
> note("Entering frobnitz(). params: '$x', '$y'");
> ...
> }
> This, of course, throws an 'uninitialized value in concatenation or
> string' warning when your test suite does this:
> is( foo(undef, undef), undef, "foo(undef, undef) gives undef" );
> How would I best solve this problem in Perl6?
macro note(Perl::Expression $expr)
is parsed(/$<expr> := <Perl.arglist(:(Str))>/)
{
$expr.compile(:warnings(0));
}
Luke