<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 18 February 2018 at 13:17, Martin Nowak via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 02/18/2018 08:26 PM, Manu wrote:<br>
> If change the behaviour (is done), then just let the code be broken!<br>
> Emitting these terrible noises, and encouraging people to make their code<br>
> even noisier than the compiler output is much worse than broken code.<br>
</span><span class="">> There are hundreds of lines I need to molest to make the compiler shut up.<br>
> I won't type another line of code on my colour library until this noise is<br>
> gone... I will not maintain it. I am emotionally incapable of assaulting my<br>
> code with those casts.<br>
<br>
</span>Best solution, write a custom Int type that doesn't use C's horrible<br>
promotion rules.<br>
I've long wanted some SafeInt library that doesn't silently promote and<br>
supports saturation, overflow, and errors.<br></blockquote><div><br></div><div>That's pretty much what this particular code implements ;)<br></div></div></div></div>