Is there a way to see expanded templates/mixins as the D compile expands it?
This would be nice for pedagogical purposes.
Thread overview | |||||
---|---|---|---|---|---|
|
August 25 Templates/Mixin - Is there a way to see expanded source code equivalent? | ||||
---|---|---|---|---|
| ||||
August 25 Re: Templates/Mixin - Is there a way to see expanded source code equivalent? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brother Bill | On 25/08/2025 2:36 PM, Brother Bill wrote:
> Is there a way to see expanded templates/mixins as the D compile expands it?
> This would be nice for pedagogical purposes.
-mixin=<filename> expand and save mixins to file specified by <filename>
|
August 25 Re: Templates/Mixin - Is there a way to see expanded source code equivalent? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Brother Bill | On Monday, 25 August 2025 at 02:36:01 UTC, Brother Bill wrote: >also just factor it out and unit test it if its complex |
Copyright © 1999-2021 by the D Language Foundation