A Refcounted Array Type

Jonathan M Davis via Digitalmars-d digitalmars-d at puremagic.com
Mon Feb 23 21:59:34 PST 2015


On Monday, February 23, 2015 15:28:21 Andrei Alexandrescu via Digitalmars-d wrote:
> On 2/23/15 2:15 PM, Walter Bright wrote:
> > This is pretty straightforward.
> [snip]
>
> The code builds if you slap a "@safe:" at the top. There is one bug in
> the compiler: "delete" must not be allowed in @safe code. The destructor
> must be @trusted.

And delete is supposed to have been deprecated ages ago, but yeah, it
_definitely_ shouldn't be considered @safe.

- Jonathan M Davis



More information about the Digitalmars-d mailing list