UDA and trait for non-GC managed pointers

Nordlöw via Digitalmars-d digitalmars-d at puremagic.com
Sat Oct 15 10:21:35 PDT 2016


On Saturday, 15 October 2016 at 17:19:53 UTC, Nordlöw wrote:
>     E* _ptr;                // non-GC-allocated store pointer
>
> to
>
>     @nogc E* _ptr;          // GC-allocated store pointer

should, of course, be

>     E* _ptr;                // GC-allocated store pointer
>
> to
>
>     @nogc E* _ptr;          // non-GC-allocated store pointer



More information about the Digitalmars-d mailing list