Re: Re: [RFC-Discuss] Scalar Type Declarations v0.5
| From: | Lester Caine | Date: | Thu, 19 Feb 2015 00:53:28 +0000 |
| Subject: | Re: Re: [RFC-Discuss] Scalar Type Declarations v0.5 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-83137@lists.php.net to get a copy of this message | ||
On 18/02/15 23:09, Christoph Becker wrote:
> It seems to me that this behavior is hard to deal with generally for
> programmers as well as static analyzers. Andreas' bigint RFC[1] would
> solve that issue, but it has been withdrawn, and AFAIK nobody is working
> on it. OTOH, bigint would make the widening from int to float
> potentially even more lossy (i.e. inaccurate) than it is now (64bit ints
> vs. IEEE 754 doubles).
The 'unconstrained integer' RFC adds it' own problems, but the int ->
float overflow is only a problem with 32bit builds anyway. 64bit builds
will not overflow until they run out of space anyway.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk