diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-18 12:41:41 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-08-20 09:33:11 -0400 |
commit | ff4eb3984da9fdf3cec4f01cf752e4e7da44139f (patch) | |
tree | 9474354cb882578cd450a6b74a9f4d4eff6ee0bd /cpan/IO-Compress/private | |
parent | 8b7fad815cf65ab870e666844e22045c74803f64 (diff) | |
download | perl-ff4eb3984da9fdf3cec4f01cf752e4e7da44139f.tar.gz |
Separate grok_infnan() from grok_number().
Remaining issues:
(1) would need tests, but there are two problems: [a] generating inf/nan
reliably and testing for it from Perl level is hard (see items (2) and
(3) below), and [b] the behavior of various systems with especially NaN
differs (some platforms might throw SIGFPEs).
(2) toke.c:scan_number() will not call this code (via grok_number)
because "NaN" or "Inf" do not look at all like floats to it.
(3) Even as we now recognize these forms, the native strtod()
might not (problem of cross-portability of these exceptional
forms: Win32 outputs e.g. "1.#INF", what Linux reading this should do,
or conversely Linux outputs "Inf", what should Win32 do?)
Diffstat (limited to 'cpan/IO-Compress/private')
0 files changed, 0 insertions, 0 deletions