Re: unsinged integer
| From: | Andrea Faulds | Date: | Sat, 17 Jan 2015 12:22:02 +0000 |
| Subject: | Re: unsinged integer | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-80693@lists.php.net to get a copy of this message | ||
Hey Pierre,
> On 17 Jan 2015, at 05:56, Pierre Joye <pierre.php@gmail.com> wrote:
>
> It looks to me like yet another can of worms (how do you deal with
> conversions, mixed operations, etc. it adds a lot of special cases)
> with little benefits.
The conversions are trivial and there are no operations to implement. The only "support"
added would be one more zend_parse_parameters option.
> 32bit environments are dying species. There are
> ways to support LFS without that as well (while I doubt the effort is
> worth it). So if I'd to choose whether PHP should support unsigned
> integer, my gut feeling right now is no, it should not.
This wouldn't be unsigned integer support though, it'd just be a conversion mechanism.
Also, it has some use beyond 32-but systems. On 64-bit, it would be useful for, e.g. pack() and
unpack().
Thanks.
--
Andrea Faulds
http://ajf.me/