AST macros
Walter Bright
newshound at digitalmars.com
Sun Mar 18 13:30:54 PDT 2007
eao197 wrote:
> On Sun, 18 Mar 2007 05:00:34 +0300, Walter Bright
> <newshound at digitalmars.com> wrote:
>
>> Right now, I see AST macros as manipulating expressions and
>> statements, not declarations.
>
> If I have understood you correctly the D macros will be used like
> class_eval/module_eval in Ruby -- for generation new content of the
> programm. For example, in Ruby I can write:
Macros wouldn't be for adding declarations to classes, for that use
template mixins.
More information about the Digitalmars-d
mailing list