On 3/14/2013 10:25 PM, deadalnix wrote:
On Thursday, 14 March 2013 at 17:53:42 UTC, Andrei Alexandrescu wrote:
Template constraints are D's solution to that issue. I agree it's not perfect,
but I think dollar for dollar it's better than concepts.
No they aren't, because it would only skip the top most lines and replace the
error by something like impossible to find method blah.
With something like concept, I'd have something like in case of eroneous
template :
file:line: Error: concept Blah don't have member blah.
D also allows you to build custom error messages.