Proposal 2: Exceptions and @nogc

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Tue Apr 11 04:44:33 PDT 2017


On 2017-04-10 22:10, Jonathan Marler wrote:

> The compiler makes it refcounted if and only if you are "throwing" and
> "newing" in the same statment, i.e.
>
>     throw new E(); // refcounted

Aha, now I understand. I don't think that was very clear from the beginning.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list