List of Phobos functions that allocate memory?
Namespace
rswhite4 at googlemail.com
Thu Feb 6 11:07:09 PST 2014
On Thursday, 6 February 2014 at 19:05:49 UTC, Andrej Mitrovic
wrote:
> On Thursday, 6 February 2014 at 19:01:33 UTC, Johannes Pfau
> wrote:
>> You can store the exception as a global and that's done for the
>> OutOfMemoryError IIRC.
>
> Hmm.. is that even safe? I mean in some case of exception
> chaining the same object could be overwritten before being
> thrown again, thereby losing the original exception state.
> Thinking out loud here..
You could use a circular buffer with appropriate length.
More information about the Digitalmars-d
mailing list