On Wed, 19 Nov 2014 14:04:15 +0000
Don via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> I don't know what you mean. For unsigned ints, carry is not an 
> error. That's the whole point of unsigned!
this *may* be not a error. it depends of what programmer wants.

> This is the job of the compiler, not the programmer. The compiler 
> should do this at all possible places where a slice could exceed 
> the int.max / long.max. That's cheap because there are hardly any 
> places it could happen (for example, for array slices it can only 
> happen with 1-byte types).
i, for myself, don't want the compiler to do arcane type conversions
behind my back.

> ---
> Almost everybody seems to think that unsigned means positive. It 
> does not.
> ---
sure, it includes zero, which is neither positive nor negative. ;-)

Attachment: signature.asc
Description: PGP signature

Reply via email to