SomeDude:
It's a bad solution imho. Monitoring the druntime and hunting every part that allocates until our codebase is correct like Benjamen Thaut is a much better solution
Why do you think such hunt is better than letting the compiler tell you what parts of your program have the side effects you want to avoid?
Bye, bearophile