develooper Front page | perl.perl5.porters | Postings from April 2010

Re: [perl #74752] silence "Dot after hexadecimal literal isconcetation" warning in cpan/Encode/t/fallback.t

Thread Previous | Thread Next
From:
Zefram
Date:
April 29, 2010 03:46
Subject:
Re: [perl #74752] silence "Dot after hexadecimal literal isconcetation" warning in cpan/Encode/t/fallback.t
Message ID:
20100429104638.GE7385@lake.fysh.org
Nicholas Clark wrote:
>To my mind (b) seems better than (a).
>Given that (a) is causing warnings in existing, valid, (mostly) sane code.

Bear in mind that '123.""' is already an error, because '123.' is a
valid decimal fractional literal.  The difference between (a) and (b)
is in whether we can make '0x123.' a valid hex fractional literal,
with the side effect of making '0x123.""' also an error.

>Secondly, more generally, I think it would very useful if there were a way
>to test (or at least smoke) blead with all deprecation "warnings" as errors.

It's not difficult to spot these warnings, as it is.  They've been
mentioned already, on the earlier threads, and I'm somewhat appalled
that it's had to go as far as a bug report to RT.  t/op/taint.t elicits a
similar warning, regarding an octal literal, and that still hasn't been
fixed either.  With Encode, we're also dithering about who is upstream,
but t/op/taint.t doesn't have that excuse.

-zefram

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