On 03/09/2012 13:51, Nick Treleaven wrote:
myAssertBody(condition, format("Assertion failed @ %s:%d: ", file, line, args));
Oops, that is unsafe, fixed: void myAssert(string file = __FILE__, int line = __LINE__, Args...)( lazy bool condition, lazy string messageFormat, lazy Args args) if (args.length > 0) { myAssertBody(condition,xformat("Assertion failed @ %s:%d: %s", file, line, xformat(messageFormat, args)));
}