develooper Front page | perl.perl5.porters | Postings from December 2014

[perl #123526] troublesome expression for infinity

Thread Next
John Tromp
December 31, 2014 08:54
[perl #123526] troublesome expression for infinity
Message ID:
# New Ticket Created by  John Tromp 
# Please include the string:  [perl #123526]
# in the subject line of all future correspondence about this issue. 
# <URL: >

Module uses 9**9**9 to denote infinity.

This causes our Perl code, which happens to install a floating point
overflow handler through MkSwig'ed C-code, to crash.

Writing 1/0 instead of 9**9**9 avoids this problem, and would
seem to be the preferred notation for (positive) infinity.

Could we have all uses of 9**9**9 replaced with 1/0 ?

using /usr/local/products/perl/5.16.0/lib/4.16.0/B/
with perl version: 5.16.0
on OS: Linux 3.11.10-21-default x86_64

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About