develooper Front page | perl.perl5.porters | Postings from May 2015

[perl #124446] POSIX.pm 1.47+ exports C99 math functions

From:
Tokuhiro Matsuno
Date:
May 3, 2015 00:45
Subject:
[perl #124446] POSIX.pm 1.47+ exports C99 math functions
Message ID:
rt-4.0.18-28589-1430613928-78.124446-75-0@perl.org
# New Ticket Created by  "Tokuhiro Matsuno" 
# Please include the string:  [perl #124446]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=124446 >


POSIX.pm 1.47+ exports C99 math functions by default.

It breaks code the code like following:

```
package Foo;
sub round { }
package Bar;
use POSIX;
use parent qw(Foo);
__PACKAGE__->round();
```

Because C99 math functions have too generic name.

I suggest to remove these functions from default imports.

The issue happened on real code:
https://github.com/yappo/p5-Geo-Coordinates-Converter/pull/1

Issue is introduced from:
https://github.com/Perl/perl5/commit/7965edec715460c994530f0ab3803b5845c15d7b#diff-08dc17f086c8dfcda1469a5d1ab1ad41

--
tokuhirom




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