[ ArgumentList ] vs. @( ArgumentList )

Jacob Carlborg doob at me.com
Thu Nov 8 04:15:52 PST 2012


On 2012-11-07 22:16, Timon Gehr wrote:

> Text interpolation.
>
> enum d = "c";
>
> mixin(X!"abc@(d)ef"); // -> abccef
>
> I use it mostly for code generation.
>
> mixin(mixin(X!q{
>      if(@(a)) @(b);
> }));

This is what we need AST macros for.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list