Major performance problem with std.array.front()

bearophile bearophileHUGS at lycos.com
Thu Mar 6 19:26:51 PST 2014


Walter Bright:

>> 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.

I don't think people have ever suggested that.

In a recent discussion you seemed against the idea of a special 
compiler support for that user defined type.

Bye,
bearophile


More information about the Digitalmars-d mailing list