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
'warn' does not append '...caught' #14900
Comments
From @KES777Created by @KES777The doc says: $ perl -E '$@ = bless {}, "Test";warn;' but I expect: Doing some info dig I compare 'warn' with 'die' (The only one difference between them, to mine mind, must be execution does not stop after 'warn' ) CASE 1 Everything is expected here CASE 2 Expected default behaviour, if object has no 'PROPAGATED' sub. So the second line must be also: But in both cases $@ is used, so I expect also ...caught/...propagated. Like CASE 1 CASE 3 As you, maybe, have noticed (in compare to CASE 2) the die has 'at -e line 1' CASE 4 Here I expect warning about 'Use of uninitialized value...' 1. Should I open its own bug report for CASE 2, 3 and 4? Perl Info
|
From zefram@fysh.orgKES wrote:
The "...caught" is deliberately not appended to a reference. There's a general intent that referenced objects be left intact through
Warning is not the same thing as propagating an unwinding exception.
That condition arises at the point of the die that sees the undef value.
No. You've only found one situation that's amiss, which is the one you -zefram |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#126106 (status was 'open')
Searchable as RT126106$
The text was updated successfully, but these errors were encountered: