d-programming-language.org

eles eles at eles.com
Mon Jul 4 13:16:04 PDT 2011


> Yes non-relase mode is slower, but we are probably talking
> about a very significant slowdown here.  A lot of integer math
happens in
> D.

What about testing only for user selected variables/types?

> I think a much more effective fix for the language would be to make
slice
> length a signed type.  Then you simply eliminate 99% of integer
overflows
> (it's very rare that a signed integer overflows, but not so
unlikely that
> an unsigned one does).

I do not like that (Java-like) path too much. Why loosing half of
length range?




More information about the Digitalmars-d mailing list