My late christmas present for you: context-aware assertion error messages

Kagamin spam at here.lot
Tue Jan 15 08:43:06 UTC 2019


On Saturday, 12 January 2019 at 15:34:02 UTC, Seb wrote:
> void main()
> {
>     int a = 1, b = 2;
>     assert(a == b); // ERROR: 1 != 2
> }

But 1!=2 is true :)
Maybe do it the C way "assertion 1 == 2 failed"? Also there's in 
operator.


More information about the Digitalmars-d mailing list