feature request: __ARGS__ for logging (cf __FILE__, __LINE__, __FUNC___)

Timon Gehr timon.gehr at gmx.ch
Fri Feb 1 08:04:15 PST 2013


On 02/01/2013 04:54 PM, Jacob Carlborg wrote:
> On 2013-02-01 16:36, Timon Gehr wrote:
>
>> Analysis and rewriting.
>
> I'm just thinking an API similar to a reflection API. Something like:
>
> Ast!(Class) c;
>
> foreach (Ast!(Member) m ; c.members)
> {
>      // do something with each member
> }
>

Yes, that will work, as long as all necessary information is exposed.

> Sure it would be easier and better looking with pattern matching.
>

I take it you mean syntax sugar for pattern matching? AST macros have 
failed if they do not allow a decent library implementation of such 
functionality. :)


More information about the Digitalmars-d mailing list