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
goto LABEL doesn't work from within $SIG{__DIE__} #8987
Comments
From @steve-m-hayCreated by SteveHay@planit.comThis is a bug report for perl from SteveHay@planit.com, ----------------------------------------------------------------- The man pages seem to suggest that it should: perlvar: perlsyn: However, it doesn't seem to work: print "one\n"; prints: one I get the same result with perl-5.8.8 and perl-5.9.5. Perl Info
|
From @jkeenanOn Fri Aug 03 06:30:49 2007, Steve.Hay@uk.radan.com wrote:
I confirmed the above case using Perl 5.14.2 on Darwin/PPC. But then I ##### print "one\n"; sub three { goto THREE }; Output: ##### Thoughts? Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Mon Jan 02 17:52:29 2012, jkeenan wrote:
You just tried to assign the return value of three() to $SIG{__DIE__}. This variation: #!/usr/local/bin/perl print "one\n"; sub three { goto THREE }; prints this: one -- Father Chrysostomos |
From @iabynOn Fri, Aug 03, 2007 at 06:30:50AM -0700, Steve Hay wrote:
I don't think it should be able to. I think the "via a goto" in the docs The reason I think this shouldn't work, is that SIG{__DIE__}, like -- |
From @iabynOn Wed, Jan 04, 2012 at 12:28:56PM +0000, Dave Mitchell wrote:
Docs now updated with commit c94b42e clarify how $SIG{__DIE__} can return M pod/perlvar.pod -- |
From @cpansproutOn Wed Jan 04 04:29:41 2012, davem wrote:
Couldn’t goto-LABEL and loop controls be made to do a longjmp if the -- Father Chrysostomos |
From @iabynOn Sun, Jan 08, 2012 at 11:02:58AM -0800, Father Chrysostomos via RT wrote:
Not really. There's not a 1-1 correspondence between depth of nesting of -- |
From @doySo have we decided this is a wontfix then? -doy |
From @cpansproutOn Tue Jul 03 13:17:46 2012, doy wrote:
I haven’t. :-) I still think it a wart from the point of view of the Perl language I would still like to fix this. -- Father Chrysostomos |
From @tseeOn 07/03/2012 10:27 PM, Father Chrysostomos via RT wrote:
I won't stop you, but *please* don't fix this at the cost of --Steffen |
From @cpansproutOn Mon Aug 13 02:03:27 2012, smueller@cpan.org wrote:
The reason it cannot exit a sort block is that sort is a single op that The only overhead would be an extra setjmp for each runloop, which I -- Father Chrysostomos |
@cpansprout do you still want to fix goto in this way? |
Hi, thanks to @xenu for pointing me to this issue. I ran into it while experimenting with a
I was experimenting with |
Migrated from rt.perl.org#44367 (status was 'open')
Searchable as RT44367$
The text was updated successfully, but these errors were encountered: