A Refcounted Array Type
Steven Schveighoffer via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 3 10:38:10 PST 2015
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:
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.
More information about the Digitalmars-d