UDA and static struct fields

Simen Kjærås simen.kjaras at gmail.com
Thu May 24 07:59:08 UTC 2018


On Thursday, 24 May 2018 at 07:47:54 UTC, Andrea Fontana wrote:
> Is this a bug or am I missing something?
>
> https://run.dlang.io/is/OGHJYX
>
>
> Andrea

This line:

       mixin("alias tmp = " ~ s ~ ";");

There's no mention of Symbol in there. If you change it to this:

       mixin("alias tmp = Symbol" ~ s ~ ";");

then suddenly things work.

--
   Simen


More information about the Digitalmars-d-learn mailing list