On Tuesday 22 October 2002 19:23, Jason T. Greene wrote:
> If for some reason we HAVE to have a symmetrical bogus unsigned left
> shift operator, and we completely disagree with my arguments on
> overloading the HEREDOC operator, then we can implement >>>>, >>>>=,
> <<<<. <<<<= as the unsigned shift operators.

There is no need for operators to be composed from nonalphabetic
characters. You could use a function (shift is already taken, but
ashift and ushift for arithmetic shift and unsigned shift are free
and value, direction and shift width are parameters). Or you could use an 
operator with a name similar to assembler instructions
(asl, asr for arithmetic shift left and right, lsl and lsr for logical 
shift left and right). I rather prefer this to an arbitrary number of
angle brackets.

> 2. Shift behavior declare compiler directive
> --------------------------------------------
>
> Implement a declare compiler directive which will change the behavior of

Sucks.

> 3. Implement Unsigned Data types
> ---------------------------------

This would be a very good idea, but is hard to do in the current
typing concept of PHP.

> (Shift function)

See above, if function, then as generic as possible.

Kristian


--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to