March 23, 2014 Re: Check for presence of function | ||||
---|---|---|---|---|
| ||||
On Sun, Mar 23, 2014 at 2:50 PM, Andrej Mitrovic <andrej.mitrovich@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.
|
March 23, 2014 Re: Check for presence of function | ||||
---|---|---|---|---|
| ||||
On 3/23/14, Philippe Sigaud <philippe.sigaud@gmail.com> wrote:
> Now, if only __traits could be beautified somewhat... I mean: everyone is using it, it's time to make it more palatable.
That's what std.traits is for, to hide the __traits and is() uglyness.
|
Copyright © 1999-2021 by the D Language Foundation