Generic multiargument overload. Constructs a string using the print function.
@system pure nothrow @nogc bool func(scope const(char)[] msg) { /// scope messages are copied try throw new MirException(msg); catch(Exception e) assert(e.msg == msg); /// immutable strings are not copied static immutable char[] gmsg = "global msg"; try throw new MirError(gmsg); catch(Error e) assert(e.msg is gmsg); return __ctfe; } assert(func("runtime-time check") == 0); static assert(func("compile-time check") == 1);