On Thursday, 6 February 2014 at 19:32:11 UTC, Johannes Pfau wrote:
For games on systems like embedded gaming systems (think like
NintendoDS, 4MB ram) you might not have a GC but still want to
use exception handling.
Yeah, when I toyed with bare metal D, I did exceptions with
manual memory management - malloc when throwing (well, I did
malloc in _d_newclass so it was transparent to the throwing
code), free when catching.
But I think a program written for a special environment will have
different coding standards from top to bottom, including the need
to free in an exception handler and the option to hack druntime.