On Tuesday, 31 July 2018 at 07:49:40 UTC, Shachar Shemesh wrote:
On 31/07/18 10:29, Mike Franklin wrote:
Please clarify if I'm missing the point.
You are. I want something along the lines of:
assertEQ(a, b, "a and b are not equal");
When run, it would issue an assert that says:
Assertion failed: 3!=7: a and b are not equal
You could also vote for this PR
(https://github.com/dlang/dmd/pull/8517) - this PR will generate
such error messages. It's intended to work in -betterC and @nogc
(once the PR is ready).