Re: [Zend Engine 2] Right/Left Shift Zero Fill operator
| From: | Jason Greene | Date: | Mon, 10 Sep 2001 14:24:20 +0000 |
| Subject: | Re: [Zend Engine 2] Right/Left Shift Zero Fill operator | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-65660@lists.php.net to get a copy of this message | ||
Good Idea
Is there anyone out there who uses >> on negative numbers?
There is the discussion on the engine2 list about whether to
make >> an unsigned right shift, or to introduce a new operator
>>>.
Speak-up or potential loose your negative shift-ability
: )
-Jason
----- Original Message -----
From: "Andrei Zmievski" <andrei@ispi.net>
To: "Andi Gutmans" <andi@zend.com>
Cc: "Jason T. Greene" <jason@inetgurus.net>; "Jason Greene"
<jason@php.net>; <engine2@lists.zend.com>
Sent: Friday, September 07, 2001 8:22 AM
Subject: Re: [Zend Engine 2] Right/Left Shift Zero Fill operator
> On Fri, 07 Sep 2001, Andi Gutmans wrote:
> > I guess the reason for this is because some people in C use >> 1 to divide
> > by 2. I don't think this has had its uses in PHP and I think we should
> > change it to do an unsigned shift.
>
> Maybe you should ask on the php-dev list first.. if anyone uses it for
> division.
>
> -Andrei
>
> "In this age, which believes that there is a short cut to everything,
> the greatest lesson to be learned is that the most difficult way is, in
> the long run, the easiest."
> -Henry Miller, The Books in My Life