develooper Front page | perl.perl5.porters | Postings from March 2012

Re: [perl #111500] Bleadperl v5.15.7-88-g7e4f045 breaksMLEHMANN/common-sense-3.4.tar.gz

Thread Previous | Thread Next
From:
Marc Lehmann
Date:
March 4, 2012 00:26
Subject:
Re: [perl #111500] Bleadperl v5.15.7-88-g7e4f045 breaksMLEHMANN/common-sense-3.4.tar.gz
Message ID:
20120304082611.GE2562@schmorp.de
On Sun, Mar 04, 2012 at 08:35:15AM +0100, "Andreas J. Koenig" <andreas.koenig.7os6VVqR@franz.ak.mind.de> wrote:
> If you have not seen it, please see the ticket, especially the first
> answer from Father Chrisostomos with a patch at
> https://rt.perl.org/rt3/Public/Bug/Display.html?id=111500
> 
> I'm interested in hearing what you think about it.

Well, thanks a lot. Pity that the code was designed to actually do the right
thing, and I feel perl 5.15 is the culprit here by considerably changing how
the warning system works.

I would like to understand it though: the current code turns off all warnings
bits except the ones the user asked for.

The new code would leave warning bits on.

Use common::sense is supposed to set warnigns to a predefined set, not to
disable some and enable others.

So it seems to me that the warning bits are no longer that, warning bits,
but either non-warning bits or are being abused for something else, which
would be bad design.

I don't know what 5.15 actually does, but if turning off warning bits
causes errornous warnings, then I would expect this to be treated as a bug
in perl.

Now, either I don't understand whats going on (then I would like to
learn), or maybe the new style means this is what's going to be done in
5.15, which means I'll simply have to make it work somehow - common::sense
uses undocumented bits, so perl can change them at will.

However, if I am right and 5.15 abuses the warning bits for something
else, I would ask the p5p'ers to reconsider their design to something more
sane.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp@schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\

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