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

Jacob Carlborg doob at me.com
Sun Feb 3 04:22:36 PST 2013


On 2013-02-03 09:44, dennis luehring wrote:

> i understand that pushing the context und sub-macro is a need
>
> but didn't you define a macro-type by
>
> alias macro (Ast!(string) str) my_macro
>
> and this type can be used by sub-macros like normal typed parameters

I'm not sure I understand the above.

> another question:
>
> why Ast! here - can the input any else than a AST?
> and why not use your $ notation not also here $string?

Ast would be a type defined, most likely, by druntime. I'm trying to 
minimize the syntactic changes needed to implement this feature request. 
It's not even sure that the $val syntax would be used. Take a look at 
the "ast" macro.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list