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

james.p.leblanc james.p.leblanc at gmail.com
Thu Sep 16 04:54:21 UTC 2021


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=<whatever-name> file.d`
>
> Beware, this will also include **all** the mixin code from 
> standard library and runtime.
>
> But it's manageable, reflecting on my experience.

Tejas,

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!  Thanks again, now I am off to do some 
digging...

Best Regards,
James




More information about the Digitalmars-d-learn mailing list