Zoffix Znet via RT wrote:
>For record, all three of the problematic ones now throw. Is that the
>desired behaviour?

Not the desired behaviour, no.  It's a massive improvement over giving
the wrong answer, and arguably fixes the bug qua bug, but it's still
less than awesome.  It would be easy (and shouldn't even cause any loss
of usual-case performance) to make these cases give the right answer.

If the decision is for these cases throwing to be the final behaviour,
then this limitation on the bit shift operators should be documented.
(You don't need to specifically document that the operation will fail
if the right answer is too big to represent, but in this case the right
answer is very small.)

-zefram

Reply via email to