How can we view source code that has been generated (say via "static foreach") ?

Dennis dkorpel at gmail.com
Fri Sep 17 13:03:18 UTC 2021


On Wednesday, 15 September 2021 at 19:59:43 UTC, james.p.leblanc 
wrote:
> However, with various combinations of templates, UDAs, and
> mixins it has not been easy.

Apart from -mixin, there's also the undocumented -vcg-ast switch 
that prints the AST before code generation, showing instantiated 
templates and unrolled static foreach loops.



More information about the Digitalmars-d-learn mailing list