Hacker News new | ask | show | jobs
by WalterBright 49 days ago
Ok, I understand that. Thank you for the explanation.

An analogous thing happens in D:

    int x;
    x = 5;
The compiler front end generates two assignments. But then, when it goes through the backend, the first assignment is deleted by what is known as the "dead assignment optimization".