Abstract syntax tree manipulation

Elie Morisse syniurge at gmail.com
Sun Jan 26 07:53:24 PST 2014


On Sunday, 21 April 2013 at 10:13:43 UTC, Jacob Carlborg wrote:
> On 2013-04-21 09:57, Suminda Dharmasena wrote:
>> Hi,
>>
>> Since macro is reserved perhaps D can introduce AST 
>> manipulating macros.
>>
>> Suminda
>
> The original idea with the "macro" keyword was to introduce AST 
> macros. Although nothing has happened yet. People have been 
> talking about it from time to time but no one has had a real 
> proposal.
>
> I've got this: 
> https://dl.dropboxusercontent.com/u/18386187/ast_macros.html
>
> But I haven't turned it into a DIP (D Improvement Proposal) yet.

This would be a perfect and much classier replacement for mixins 
in most situations.


More information about the Digitalmars-d mailing list