DIP 50 - AST macros

Dicebot public at dicebot.lv
Tue Nov 12 09:03:24 PST 2013


On Tuesday, 12 November 2013 at 16:54:19 UTC, Andrei Alexandrescu 
wrote:
> I don't see how AST reflection is needed for generating correct 
> D code from an SQL expression. Dmitry did exactly that with 
> ctRegex. Please illuminate.

Other way around. Generating arbitrary output (including but not 
limited to SQL expressions) from D code. As I have already 
mentioned, it is the very same thing we do now with __traits and 
UDA's but not limited to only declarations.


More information about the Digitalmars-d mailing list