On 3/3/15 9:57 AM, Kagamin wrote:
On Tuesday, 3 March 2015 at 14:42:40 UTC, Steven Schveighoffer wrote:
   // trigger assert in A.dtor.

You mean assert breaks something?

OK, if you want to be pedantic:

int *myglobal;

repeat same code, but access what myglobal points to instead of setting to 42. Memory corruption is what @safe code is trying to prevent. This would lead to memory corruption.

-Steve

Reply via email to