iPhone vs Android

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 13 16:52:39 PDT 2016


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.


More information about the Digitalmars-d mailing list