On 9/13/2016 4:13 PM, H. S. Teoh via Digitalmars-d wrote:
There's nothing about the 'throw' keyword that requires GC allocation.
It's just that `throw new Exception(...)` has become a standard
incantation. The exception object itself can, for example, be emplaced
onto a static buffer as I propose above.

There's currently nothing that would prevent any handler code from saving a reference to the thrown exception. Statically allocating them would break that.

Reply via email to