assert semantic change proposal

Martin Krejcirik via Digitalmars-d digitalmars-d at puremagic.com
Sun Aug 3 16:24:08 PDT 2014


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.

-- 
mk


More information about the Digitalmars-d mailing list