-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Odd problem with anonymous subroutines, lexical variable closures, and DESTROY (fwd) #221
Comments
From kp11901@mail.cedarnet.orgCreated by kp11901@cedarnet.orgOK, first things first (what I was trying to do). I have developed a perl try { syntax for exception handling, using sub (&@) try and sub (&) catch; It seems to work nicely, except for one thing - if there is a try within a The test case will loop creating new objects, and undef'ing them, every Running it with eval { eval { ... } } will work, it is only with the if any more detail would be helpful, just say so. I've tried not to leave Oh - this is a straight RedHat 6.0/i386 system, with their perl build Here is the test case (about 70 lines): $| = 1; # I want any order problems to be real! package container; sub DESTROY { package dummy; Perl Info
|
From @iabyn(reviewing old bugs). Problem appears to persist in 5.8.0 The following simplified code example exhibits the same problem. I'm guessing that when the outer anon sub is cloned, it picks up foreach (1..3) { package Foo; sub DESTROY { print "destroy " . shift() . "\n"; } |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#1028 (status was 'resolved')
Searchable as RT1028$
The text was updated successfully, but these errors were encountered: