[OT] Generative C++

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 3 17:02:09 PDT 2017


On Thursday, 3 August 2017 at 23:59:01 UTC, jmh530 wrote:
> On Thursday, 3 August 2017 at 22:38:08 UTC, Joakim wrote:
>>
>> 30-page long thread from four years ago, enjoy: :D
>>
>> http://forum.dlang.org/thread/l5otb1$1dhi$1@digitalmars.com
>>
>> This post from Walter may summarize his feelings:
>>
>> http://forum.dlang.org/post/l6co6u$vo$1@digitalmars.com
>
> Would it be possible to implement @safe/@nogc/pure/nothrow with 
> AST macros?

Nope :)

It's doable with good introspection but local ast-node rewriting 
will not help.
Execpt if you can rewrite the macro itself.

But I'd strongly discourage such a solution.


More information about the Digitalmars-d mailing list