Better error messages - from reddit

Meta jared771 at gmail.com
Fri Mar 8 03:09:17 UTC 2019


On Thursday, 7 March 2019 at 22:09:29 UTC, Johannes Pfau wrote:
> * What to do if there are multiple overloads. Print diagnostics 
> for all?

It's not ideal, but a -constraintcheck compiler switch would mean 
that these messages are only printed when a user explicitly 
requests it (and for bonus points: -constraintcheck=<list of 
symbols> to only check certain symbols).

> * If multiple __traits(constraintCheck) fail, do we print all?

I don't see any other way you could do it.




More information about the Digitalmars-d mailing list