Discussion Thread: DIP 1028--Make @safe the Default--Final Review

Walter Bright newshound2 at digitalmars.com
Fri Mar 27 09:20:57 UTC 2020


On 3/25/2020 3:40 PM, H. S. Teoh wrote:
> I wouldn't say this is a big impact, but it did catch a couple of bugs
> that would've been a pain to track down.

Even if escaping references to the stack are rare, it is very very important to 
catch them as they are hard to track down and cause silent data corruption. 
They're some of the worst bugs.

@safe recently found a data corruption bug in the druntime stack unwinder that 
had been there, latent, for years. (It hadn't caught the bug before because I 
had overlooked checking the msg argument to assert() for @safe errors.)


More information about the Digitalmars-d mailing list