On 11/19/14, 10:21 AM, ketmar via Digitalmars-d wrote:
On Wed, 19 Nov 2014 10:03:34 +0000
Don via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

No! No! No!  This is completely wrong. Unsigned does not mean
"positive". It means "no sign", and therefore "wrapping
semantics".
eg length - 4 > 0, if length is 2.

Weird consequence: using subtraction with an unsigned type is
nearly always a bug.
negative length is a bug too.

How is that a bug? Can you provide some code that exhibits this?

Reply via email to