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

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

Thread Previous | Thread Next
Robin Houston
July 5, 2001 11:20
Re: [PATCH B::Deparse] Make warnings handling more robust
Message ID:
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"

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


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About