https://issues.dlang.org/show_bug.cgi?id=8007

berni44 <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #3 from berni44 <[email protected]> ---
IMHO the documentation is quite clear here and correct.

First, according to the docs, the opperands have to undergo integer promotion.
But for ulong, there is not promotion, therefore the opperand stays ulong.

It also tells, that the result is of the same type as the left side, hence the
result is an ulong. And therefore there are no signs. I read ">> is a signed
right shift" as "if there is a sign, it will be preserved". That's true here.

--

Reply via email to