Am Thu, 06 Feb 2014 19:08:39 +0000
schrieb "Adam D. Ruppe" <[email protected]>:

> On Thursday, 6 February 2014 at 18:52:21 UTC, fra wrote:
> > Hey, wait a second. How do you throw without allocating?
> 
> I think exceptions should be ok. You optimize the typical path, 
> and exceptions are (by definition) an exceptional path. If they 
> are also unacceptable, you could restrict yourself to nothrow 
> functions. (Which can still throw Errors... but meh they are even 
> *more* exceptional)

That depends on your situation. For games and other applications on
normal computers it's OK.

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.

Reply via email to