On Friday, 13 February 2015 at 19:09:43 UTC, Tobias Pankrath wrote:
1. Throw preallocated exceptions is the way to go

... and because noone has yet shown an explicit example:

    void myThrowingNogcFunc() @nogc {
        static const exc = new Exception("something went wrong");
        throw exc;
    }

As long as you don't need to pass a runtime argument to the constructor, there's no need for emplace acrobatics.

Reply via email to