Showing a user specified error message when no overloads match

Vlad Levenfeld via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jul 28 20:34:22 PDT 2014


opDispatch behaves as though it has SFINAE. When something fails 
in the definition (like I am having now, some of the symbols I 
used in it hadn't been imported) there won't ever be an error 
message, I just get "Error: no property 'bar' for type 'Foo'"

In one case I had to use static ifs and pragmas and static 
assert(0) to get error messages out of opDispatch because static 
assert messages were being suppressed.

Its very frustrating.


More information about the Digitalmars-d-learn mailing list