On Monday, 6 March 2017 at 15:40:54 UTC, Rico Decho wrote:
If I remember well the garbage collection could be triggered during any allocation, for instance when concatenating some displayed text, and freeze all threads until the garbage collection is done.

My understanding is that GC can be triggered only when you do an allocation with GC memory. And if you use @nogc (which to my knowledge works) you cannot call anything that might trigger a garbage collection.

https://dlang.org/spec/attribute.html#nogc

Reply via email to