January 25, 2014 Re: Abstract syntax tree manipulation | ||||
|---|---|---|---|---|
| ||||
Posted in reply to MrSmith | On 2014-01-25 13:15, MrSmith wrote: > Is this avaliable as some sort of preprocessor? > Looks really amazing! No, unfortunately it's not available in any form. -- /Jacob Carlborg | |||
January 26, 2014 Re: Abstract syntax tree manipulation | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | 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.
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply