Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PUGS] [PATCH] Tests for closure bug, and die bugs

8 views
Skip to first unread message

Benjamin Smith

unread,
Feb 22, 2005, 5:04:28 PM2/22/05
to perl6-c...@perl.org
This patch adds a test to t/06sub.t to check that a closure returned by
a subroutine can find the variable that it is closed on.

But in writing this test I found that "if (die 'foo') { }" doesn't die, so a
test for that has been added to t/base/if.t.

And finally "my $foo; eval '$foo = die "bool"'; $foo;" does die, but at
the $foo.

--
Benjamin Smith <bsm...@vtrl.co.uk, bsm...@cpan.org>

patch1
0 new messages