DIP68: Adding @nogc to types

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Mon Nov 10 05:58:13 PST 2014


Tomer Filiba:

> http://wiki.dlang.org/DIP68

Perhaps your DIP also needs a trait?

struct Foo {}
@nogc struct Bar {}
static assert(!__traits(hasNogc, Foo));
static assert(__traits(hasNogc, Bar));

Byem
bearophile


More information about the Digitalmars-d mailing list