alias and mixin
Dicebot via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Aug 31 07:26:46 PDT 2014
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 at 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.
More information about the Digitalmars-d-learn
mailing list