DIP 50 - AST macros

Jacob Carlborg doob at me.com
Mon Nov 11 04:30:06 PST 2013


On 2013-11-11 12:04, Rikki Cattermole wrote:

> Ok pragmas essentially call functions like error in the compiler [0].
> What I am thinking error will do is instead of outputting like msg it'll
> call error[1]. This is exactly what you want.
>
> [0]
> https://github.com/D-Programming-Language/dmd/blob/master/src/statement.c#L2862
>
> [1]
> https://github.com/D-Programming-Language/dmd/blob/master/src/statement.c#L2957

Yes, I still don't understand why you would want it as a pragma. Be 
usable outside of macros?

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list