DIP 50 - AST macros

Jacob Carlborg doob at me.com
Tue Nov 19 07:43:38 PST 2013


On 2013-11-19 14:16, Dicebot wrote:

> Not really. You won't say that this snippet changes the meaning of
> lambda, do you?
>
> ```
> foo(a => a*2);
> // ...
> bool foo(T)(T func)
> {
>      // does not even call `func` and does something unrelated
>      return is(ReturnType!T == int);
> }
> ```

No, I guess not.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list