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
On Thursday, 16 September 2021 at 04:54:21 UTC, james.p.leblanc
wrote:
Thank you for your kind response. Wow, at first the large
output file
from a small test program was a bit surprising .., but actually
it is
manageable to dig through to find the interesting bits.
So, this is quite useful!
On Thursday, 16 September 2021 at 03:26:46 UTC, Tejas wrote:
On Wednesday, 15 September 2021 at 19:59:43 UTC,
james.p.leblanc wrote:
s
Use the `mixin` compiler flag
`dmd -mixin= file.d`
Beware, this will also include **all** the mixin code from
standard library and runtime.
But it's
On Wednesday, 15 September 2021 at 19:59:43 UTC, james.p.leblanc
wrote:
Dear All,
In attempting to learn and use code generation, it
would be useful to be able to view the source code
that gets generated.
However, with various combinations of templates, UDAs, and
mixins it has not been easy.
Dear All,
In attempting to learn and use code generation, it
would be useful to be able to view the source code
that gets generated.
However, with various combinations of templates, UDAs, and
mixins it has not been easy.
Is there some standard way this is done?
Optimal would be to print out