List of Phobos functions that allocate memory?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Feb 6 18:19:21 PST 2014
On 2/6/14, 5:23 PM, Walter Bright wrote:
> I'm tempted to say that the throw expression can call 'new' even if the
> function is marked as @nogc.
That's extreme. A better possibility is to allocate exceptions from a
different heap and proclaim that the heap is cleaned once all catch
blocks are left. (I'm sure we can find something better, but now is not
the time to worry about it.)
Andrei
More information about the Digitalmars-d
mailing list