-
Notifications
You must be signed in to change notification settings - Fork 576
warnings.pm provides no way to specify the call frame #16257
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
Comments
From @cpansproutwarnings.pm’s functions, warnings::enabled, warnings::warnif, etc., do not provide sufficiently fine-grained control over which call frame’s bitmask is looked at, which is why DBM::Deep fiddles with the bitmasks itself, and is currently broken with blead. I would like to propose that every warnings:: function that accepts a $category/$object also take an optional numeric argument following it specifying the precise number of call frames. That way, DBM::Deep will no longer have to use such brittle code for future perl versions. In more detail: warnings::enabled() warnings::fatal_enabled() warnings::warn($message) warnings::warnif($message) perl -V output, which is somewhat irrelevant to this proposal: Summary of my perl5 (revision 5 version 27 subversion 6) configuration: Characteristics of this binary (from libperl): |
From @arcFather Chrysostomos <perlbug-followup@perl.org> wrote:
I think it would be better to use new names for the functions taking a warnings::enabled_at_level -- |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutOn Mon, 20 Nov 2017 01:56:29 -0800, arc wrote:
I think _at_ would make sense for all four, since the warning will say ‘at xxx line xxx’. If nobody objects, I will go ahead and implement _at_level versions of these soonish. -- Father Chrysostomos |
From @cpansproutOn Sun, 10 Dec 2017 14:54:46 -0800, sprout wrote:
As threatened, I have implemented this in commit c4583f5. -- Father Chrysostomos |
From [Unknown Contact. See original ticket]On Sun, 10 Dec 2017 14:54:46 -0800, sprout wrote:
As threatened, I have implemented this in commit c4583f5. -- Father Chrysostomos |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#132468 (status was 'resolved')
Searchable as RT132468$
The text was updated successfully, but these errors were encountered: