DIP 1006 - Preliminary Review Round 1

ag0aep6g anonymous at example.com
Tue Mar 6 17:23:34 UTC 2018


On 03/06/2018 06:01 PM, Paolo Invernizzi wrote:
> Only if the assert does not hold, you have _not_ tested it,

In other words: only if you have a bug in your code.

If @safe is only safe as long you don't have bugs, it's no different 
from @system. So -release turns @safe code into @system code, if it 
contains asserts.

> and a future 
> optimiser will use the assert expression for some hints that generated 
> broken code


More information about the Digitalmars-d mailing list