-
Notifications
You must be signed in to change notification settings - Fork 540
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
Closures returned from threads don't wrap around the right lexicals #11563
Comments
From perl@profvince.comCreated by perl@profvince.comOn join, threads.pm calls sv_dup on the values returned to the caller perl -Mthreads -wE'my $x; my $set_x = sub { $x = shift }; $set_x->(123); This should print 123 and then 456, but it prints 123. The duplicated copy Perl Info
|
From @jdheddenFrom the 'threads' POD: Returning closures from threads On Mon, Aug 8, 2011 at 08:29, perl@profvince.com
|
The RT System itself - Status changed from 'new' to 'open' |
From @dcollinsnIt sounds like the response 5 years ago was that this isn't a bug. Is there work to be done? Is this a wishlist ticket? -- |
From perl@profvince.comLe 18/08/2016 à 14:04, Dan Collins via RT a écrit :
If it can crash the interpreter, then there's definitely work to be done. Vincent |
From @iabynOn Thu, Aug 18, 2016 at 02:17:09PM -0300, Vincent Pit (VPIT) wrote:
I don't think there's any evidence that it can crash the interpreter on -- |
From perl@profvince.comLe 18/08/2016 à 17:51, Dave Mitchell via RT a écrit :
Well that's what threads.pm claims in its "bugs and limitations" |
From zefram@fysh.orgWe can't possibly make this work as originally requested. To preserve The documentation about this was poor, though. I've revised it in commit -zefram |
@iabyn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#96538 (status was 'resolved')
Searchable as RT96538$
The text was updated successfully, but these errors were encountered: