FWIW:
Signed shift seems to make little sense to me personally, since we are 
just dealing with a row of bits, and if you really want to do a quick 
multiplication/division, you might just as well use a * or / operator - 
it is not going to hurt that much:). *However*, it's been possible in 
different languages since before I had my first computer (e.g. SHL/SHR 
and SAL/SAR in asm x86), so we might provide the same functionality and 
create a new operator to discriminate between signed and unsigned 
shifts.Just a thought. Don't kill me if that would be polluting the 
language.

Vlad

Alexander Wirtz wrote:

>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA1
>
>Hi Jason et al.,
>
>On Monday 10 September 2001 16:24, Jason Greene wrote:
>
>>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
>>
>>>>>.
>>>>>
>
>I'd be grateful, if the behaviour of >> won't change, as I'm using it in some 
>scripts for exactly this purpose. A >>> is the usual unsigned right-shift in 
>c-style languages, it wouldn't hurt to introduce it to PHP as well, would it?
>
>>Speak-up or potential loose your negative shift-ability
>>
>
>Done :)
>
>Best Regards,
>Alex
>
>- -- 
>| Alexander Wirtz           | eMail: [EMAIL PROTECTED]              |
>| web@ctive GmbH            |    "Accidents, Emergency, Ambulance"     |
>-----BEGIN PGP SIGNATURE-----
>Version: GnuPG v1.0.6 (GNU/Linux)
>Comment: For info see http://www.gnupg.org
>
>iD8DBQE7nNSEDTqTaMH1weIRAhdBAKCbojb6+0yw1alYGS1tQgydLAcfEQCg24wE
>ssB1EoyRTzQY2R1jQhAcJDw=
>=zebw
>-----END PGP SIGNATURE-----
>




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to