Check for presence of function

Philippe Sigaud philippe.sigaud at gmail.com
Sun Mar 23 07:51:05 PDT 2014


On Sun, Mar 23, 2014 at 2:50 PM, Andrej Mitrovic
<andrej.mitrovich at gmail.com> wrote:

> Pretty sure it's because you're using 'alias' instead of 'enum'. This works:

Oww! For years, D told me I couldn't use __traits in an easy way like
this. I'll have to teach me out of it, and use enum :-) Damn, but
using enum is quite natural too. Thanks Andrej.

Now, if only __traits could be beautified somewhat... I mean: everyone
is using it, it's time to make it more palatable.


More information about the Digitalmars-d-learn mailing list