On Saturday, 19 November 2016 at 21:16:15 UTC, Dicebot wrote:
DIP 1003 is merged to the queue and open for public informal
Initial merged document:
If you want the change to be approved and have ideas how to
improve it to better match on
existing published reviews - please submit new PR with
editorial and ping original author.
This DIP fixes the problem for "body" but not for the other
keywords. After all the problem may exist for other keywords. Was
a new pragma considered ? For example an identifier alias.
pragma(idAlias, "body", "body_" )
would mean that any "body_" will be treated as "body" identifier.
The translation would happen just after the grammatical parsing,
because at this phase keywords don't matter anymore.
pragma(idAlias, "function", "function_" );
pragma(idAlias, "module", "module_" )
prints "int module.function()" during compilation.