checkedint call removal

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 31 04:43:20 PDT 2014


> 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;
}


Bye,
bearophile


More information about the Digitalmars-d mailing list