DIP 50 - AST macros

Timon Gehr timon.gehr at gmx.ch
Mon Nov 11 08:22:40 PST 2013


On 11/11/2013 01:36 PM, Rikki Cattermole wrote:
>
> Yes outside of macros would be useful. For example code like this would
> become redundant:
> pragma(msg, "Support for x is not implemented on platform y");
> static assert(0);
>
> Becoming:
> pragma(error, "Support for x is not implemented on platform y");

static assert(0, "Support for x is not implemented on platform y");


More information about the Digitalmars-d mailing list