On 8/3/14, 4:24 PM, Martin Krejcirik wrote:
On 3.8.2014 21:47, David Bregman wrote:
Walter has proposed a change to D's assert function as follows [1]:
"The compiler can make use of assert expressions to improve
optimization, even in -release mode."
Couldn't this new assert behaviour be introduced as a new optimization
switch ? Say -Oassert ? It would be off by default and would work both
in debug and release mode.
That sounds like a good idea for careful introducing of assert-driven
optimizations. -- Andrei