List of Phobos functions that allocate memory?

Adam D. Ruppe destructionator at gmail.com
Thu Feb 6 11:08:39 PST 2014


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)


More information about the Digitalmars-d mailing list