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

Reply via email to