DIP 50 - AST macros

Jacob Carlborg doob at me.com
Wed Nov 13 23:53:51 PST 2013


On 2013-11-13 20:19, Walter Bright wrote:

> The reflection ability is not something specific to an AST, it could be
> added so that any expression node can be reflected. We already do much
> of that with __traits.

Yes, I been thinking of ways to expand __traits. When there's enough of 
__traits it's not much left during it into real AST macros. Just the 
part that passes the AST instead of the evaluated result of the 
arguments to a function.

BTW, is it complicated to return a more structured values, like a struct 
or a class, than just plain values like strings?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list