Major performance problem with std.array.front()

Walter Bright newshound2 at digitalmars.com
Thu Mar 6 18:57:40 PST 2014


On 3/6/2014 6:54 PM, bearophile wrote:
> Walter Bright:
>
>> systems/native programming languages must not hide the underlying
>> representation (I make similar arguments about proposals to make ints issue
>> errors on overflow, etc.).
>
> But it's good to have in Phobos a compiler-intrinsics-based efficient overflow
> detection on a user-defined struct type that behaves like built-in ints in all
> other aspects.

Yes, so that the user selects it, rather than having it wired in everywhere and 
the user has to figure out how to defeat it.



More information about the Digitalmars-d mailing list