Avoiding __traits(getAttributes, ...) on alias

Philippe Sigaud via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 9 23:57:12 PDT 2014


Vlad Levenfeld:
> but beware I've noticed that sometimes this is not
> equivalent to the previous version and I'm not sure how or why that happens.
> In particular I notice that
>
>   mixin("const bool value = "~expr~";)");
> and
>   const bool value = mixin(expr);
>
> are not the same, for some reason.

What are the differences?


More information about the Digitalmars-d-learn mailing list