3 ms·
Wait... if it's identical, how can it be safe against exceptions? `process2` isn't.
by infogulch 13y ago
Wait... if it's identical, how can it be safe against exceptions? `process2` isn't.
- twoodfin 13y agogcc can statically determine that incrementing f.var will not throw.
- saurik 13y agoIn addition to twoodfin's answer, I will point out that even if the code could throw, the code for the function would still be identical for when a throw did not occur (as in, we would see identical output with the addition of some code that would seemingly never be used or executed), on "good architectures", due to zero-cost exceptions (which only incur overhead during unwind; if no exception is thrown the code executed is exactly identical to if exceptions were not possible).