checkedint call removal
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jul 31 13:25:25 PDT 2014
On 7/31/2014 4:43 AM, bearophile wrote:
>> In debug builds gets rewritten as:
>>
>> int max(in int x, in int y) {
>> if (x <= y)
>> throw new AssertError("...");
>> return x;
>> }
>
>
> Sorry, I meant:
>
> In debug builds gets rewritten as:
>
> int max(in int x, in int y) {
> if (x <= y)
> throw new AssertError("...");
> return (x > y) ? x : y;
> }
You're overlooking data flow analysis, again. Please read up on it.
More information about the Digitalmars-d
mailing list