What are AST Macros?

Nick Sabalausky a at a.a
Thu Jul 8 19:10:47 PDT 2010


"Robert Jacques" <sandford at jhu.edu> wrote in message 
news:op.vfjy3jlo26stm6 at sandford...
>
> Check out Walter's slides and/or talk from the D conference. 
> (http://www.digitalmars.com/webnews/newsgroups.php?art_group=digitalmars.D.announce&article_id=12555)
> AST does stand for abstract syntax tree and they are much more like Lisp 
> macros as opposed to the C preprocessor.

Hmm, looks like the D version is much more template-mixin/C-macro-like than 
what I made it sound like in a previous branch of the thread. Basically like 
template mixins, but where the arguments are snippets of code, and overloads 
are resolved by pattern-matching the syntax of their arguments.




More information about the Digitalmars-d mailing list