https://issues.dlang.org/show_bug.cgi?id=16982

--- Comment #2 from Sönke Ludwig <[email protected]> ---
Yeah, I used to simply `static if (std.traits.hasIndirections!T)
GC.addRange(...);` in vibe.d's allocator module. Using annotations instead of
controlling this at the call site is an interesting idea, although I can see
applications for both approaches.

Using @nogc sounds good, too, although if that approach is taken, I'd propose
to define @nogc as a UDA in object.d instead of adding a new special trait for
detecting its presence.

--

Reply via email to