CT-String as a Symbol

Ali Çehreli via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 15 10:03:36 PDT 2015


On 04/15/2015 09:21 AM, "Nordlöw" wrote:
> At
>
> https://github.com/nordlow/justd/blob/master/typecons_ex.d#L143
>
> I can't figure out how to make the call to
>
>      mixin genOps!I;
>
> expand to, for instance,
>
>      mixin genOps!Index

This seems to work:

     mixin genOps!(mixin(I));

>
> in the case when I = "Index".
>
> Help please.

Ali



More information about the Digitalmars-d-learn mailing list