On Wednesday, 12 February 2014 at 22:42:45 UTC, Nick Sabalausky
wrote:

Hmm, that still isn't getting called for me either:

void toString(scope void delegate(in char[]) sink) const
{
import std.stdio;
writeln("In Fail.toString()");
    sink("someapp: ERROR: "~msg);
}

Tried on both 2.064.2 and 2.065-b3.

Could it be that the custom toString just doesn't get run for static exceptions?

It should.  I'm not entirely sure why it isn't working.  For
reference, the relevant code is in rt/dmain2.d (printThrowable)
and object_.d (toString(sink)) in Druntime.

Reply via email to