develooper Front page | perl.perl5.porters | Postings from July 2001

Re: [PATCH B::Deparse] Make warnings handling more robust

Thread Previous | Thread Next
From:
Robin Houston
Date:
July 5, 2001 11:20
Subject:
Re: [PATCH B::Deparse] Make warnings handling more robust
Message ID:
20010705191946.A27387@robin.kitsite.com
Mike Guy wrote:
> That seems to be a lot of work just to achieve a pessimised version of
> use constant WARN_MASK => $warnings::Bits{all} | $warnings::DeadBits{all};

No no no! L<warnings::register> actually changes the value of those
variables; the point is that I want the value *before* warnings::register
has messed with them. Or are you misunderstanding how "use constant"
works?

(An aside: I don't think it's really pessimised either; the () prototype
still causes perl to optimise away calls to the function.)

 .robin.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About