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

Jacob Carlborg doob at me.com
Wed Feb 6 23:35:16 PST 2013


On 2013-02-06 15:57, Timon Gehr wrote:

> Of course. What I mean by macro closure is the following:
>
> Ast foo(){
>      int x = 0;    // a 'closed over' variable
>      return <[x]>; // escaping reference
> }
>
> macro counter(){ return $(foo())++; }

Aha, you mean like that, I see.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list