On Friday, 28 April 2017 at 17:06:51 UTC, jmh530 wrote:
On Friday, 28 April 2017 at 16:03:18 UTC, bachmeier wrote:
I usually use the GC, so I have limited knowledge in this
area. How common is this pattern in D code? Is it better than
using reference counted structs? Is there any advantage to
using the GC in this scenario?
I would like to add this info to the wiki (I don't seen it
there).
You can also use automem
https://dlang.org/blog/2017/04/28/automem-hands-free-raii-for-d/
I'm hoping to put all information in one place. Then when someone
on Reddit or HN or here starts making claims about the GC, I can
give them one link that shows all of their options. There's this
page:
https://wiki.dlang.org/Memory_Management
but that isn't comprehensive or as to-the-point as it needs to be.