How to get nogc to work with manual memory allocation

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 24 06:27:01 PDT 2014


On 2014-08-24 14:18, Kagamin wrote:

> Shouldn't emplace and destroy infer their attributes instead of strictly
> annotating them as nogc.

If they are templates, I guess they should. I don't know how good the 
compiler is at inferring attributes. I also haven't looked at the source 
code for these functions so I don't know if there's anything stopping 
them from begin @nogc.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list