How to define templates

Jarrett Billingsley jarrett.billingsley at gmail.com
Sun Mar 29 12:27:50 PDT 2009


On Sun, Mar 29, 2009 at 3:24 PM, Walter Bright
<newshound1 at digitalmars.com> wrote:
>> What is the basic difference between Templates and Macros - the
>> declarations thing is obviously crucial, but why?
>
> Macros manipulate text, templates manipulate syntax trees. They happen at
> very different stages in compilation.

Macros manipulate syntax trees.  Useful ones do, anyway.



More information about the Digitalmars-d mailing list