On Sunday, 31 August 2014 at 12:01:43 UTC, evilrat wrote:
On Sunday, 31 August 2014 at 11:43:03 UTC, ketmar via Digitalmars-d-learn wrote:
On Sun, 31 Aug 2014 11:26:47 +0000
evilrat via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
wrote:

alias myint = mixin("int"); // <- basic type expected blah blah
 mixin("alias myint = "~"int"~";");
?

wow, it works. i don't even think inverting it O_o
you saved my day, thanks.

It is basically just an annoying grammar limitation that does not allow to use mixin / __traits as an identifier.

Reply via email to