Am Mon, 10 Nov 2014 09:13:09 +0000 schrieb "Tomer Filiba" <tomerfil...@gmail.com>:
> Thanks for the info, ketmar. > > By the way, what do you guys think of adding @nogc to structs, in > which case they cannot be instantiated by the GC? > > e.g., > > @nogc struct S {...} > auto s = new S(); // does not compile > S s; // all is well > > > -tomer That collides with the use of @nogc on S to mean that this struct itself wont use the GC, but may be used in a GC context, like as part of a class allocated on the GC heap. Well, in general it means "does not call GC functions". -- Marco