C++ guys hate static_if?

Walter Bright newshound2 at digitalmars.com
Thu Mar 14 23:34:11 PDT 2013


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.



More information about the Digitalmars-d mailing list