Unsigned Right Shift Sould there be a matching left shift?
| From: | Jason Greene | Date: | Sun, 24 Mar 2002 07:36:54 +0000 |
| Subject: | Unsigned Right Shift Sould there be a matching left shift? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-81698@lists.php.net to get a copy of this message | ||
Hello everyone,
Andi and I have been talking offline regarding my unsigned right shift
operator patch. We have decided to implement this change in ZE2;
however, there is one thing left to be resolved before the functionality
can be added.
Currently the Unsigned Right Shift patch implements 2 new operators:
>>> (Unsigned Shift)
>>>= (Unsigned Shift Assign)
In my initial patch I did not include the equivalent left shift
operators because sign only affects a right shift. However, this does
introduce a consistency problem, and so the question is should we
implement <<< and <<<= and have them just be aliases to << and <<=?
Thanks,
-Jason