On Saturday, 12 September 2015 at 13:42:44 UTC, Prudence wrote:
Using it at all is a problem because one doesn't know when and where.

It is called when the collect function is called and where it was called from.

D's garbage collector isn't magic, it is just a function that frees memory when the pool runs low.

It's like playing Russian roulette. It doesn't matter if only 1/6 times will kill you. It's totally different than 0/6.

The big difference is the garbage collector doesn't actually kill you.

Memory corruption, use-after-free, and double-free bugs on the other hand often do terminate your process.

Reply via email to