since there's ongoing discussions about exceptions, just wanted to mention D's recent-ish addition which was integrated in [https://dlang.org/changelog/2.079.0.html#dip1008](https://dlang.org/changelog/2.079.0.html#dip1008) void main() @nogc { throw new Exception("I'm @nogc now"); } Run
DIP: [https://github.com/dlang/DIPs/blob/master/DIPs/DIP1008.md](https://github.com/dlang/DIPs/blob/master/DIPs/DIP1008.md) Curious whether something like this would work in Nim. ## somewhat related * [https://github.com/nim-lang/Nim/issues/7083](https://github.com/nim-lang/Nim/issues/7083) Adding a ".nogc." pragma * \--gc:none| ---|---
