New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"isn't numeric" warning fails to appear #12686
Comments
From @sisyphusCreated by @sisyphusThere was a bug report from a long time back about this. Perls going way back to god-knows-when are affected ... it's The following is correct behaviour: ################################# However, for perls (such as my current build of 5.17.7) that ################################# The "isn't numeric" warning should still be present, but is It's as though we have, somewhere within the perl source, code And, similarly for 'inf' strings : Don't issue a numeric warning On perls built by this current compiler, I'm also getting (of ################################# The immediate reaction to that is "OMG ... this perl thinks that For those curious as to why my perl numifies 'inf' and 'nan' to Cheers, Perl Info
|
From @tonycozOn Thu, Jan 03, 2013 at 08:41:05PM -0800, Sisyphus wrote:
What does your compiler/runtime produce when outputting NaN/INF? eg. strawberry perl produces: C:\Users\tony\dev\perl\git>perl -le "print +(-1)**0.5" C:\Users\tony\dev\perl\git>perl -le "print 2**100000" I suspect we should either: a) consistently stringify NaN and Inf (and their variations) on all or b) disable the warning for the platform specific representations, and C:\Users\tony\dev\perl\git>perl -le "print '1.#INF'+'1.#INF'" While they are on Linux: tony@mars:.../git/bse$ perl -le 'print "inf"+"inf"' Tony |
The RT System itself - Status changed from 'new' to 'open' |
From @sisyphus
In a C program, a NaN will be output as either 1.#QNAN or 1.#IND. (And
For my Strawberry Perl (5.16.0): C:\_32\strawberry516>perl -le "print +(-1)**0.5" C:\_32\strawberry516>perl -le "print 2**100000"
That doesn't bother me. I think it quite reasonable that the string '1.#INF' What Strawberry also does of course is: C:\_32\strawberry516>perl -e "print 'nan' + 0" C:\_32\strawberry516>perl -le "print 'nan' + 0" C:\_32\strawberry516> Obviously, the mingw runtime of the gcc compiler that builds Strawberry
With Strawberry, the same happens - except that the inf/nan output is I just think that when (and only when) perl numifies "nan" and "inf" strings I'm not asking for what you've provided as options a) and b) ... it would Cheers, |
From @tonycozOn Thu, Jan 03, 2013 at 08:41:05PM -0800, Sisyphus wrote:
I see two reports from you on related issues: #8036 and #8377 Tony |
Migrated from rt.perl.org#116294 (status was 'open')
Searchable as RT116294$
The text was updated successfully, but these errors were encountered: