assume, assert, enforce, @safe

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Jul 31 15:04:30 PDT 2014


On 7/31/2014 10:26 AM, Daniel Murphy wrote:
> No you don't, no you can't.  You are using an optimizer because writing it in
> the perfectly precise, perfectly fast way makes your code unmaintainable. You
> want the optimizer to delete all those never-read initializations, drop all
> those temporary variables, and turn your multiplies into shifts and additions.
>
> If you didn't, you wouldn't be using an optimizer.

Even "unoptimized" code does optimizations.

If you really want unoptimized code, what you write is what you get, the inline 
assembler beckons!


More information about the Digitalmars-d mailing list