On Sunday, 24 October 2021 at 14:05:35 UTC, Simon wrote:
On Saturday, 23 October 2021 at 20:24:32 UTC, Tim wrote:
[...]

That worked! I needed to modify it a bit, since there is the "execution_count_to_log_reproduction_on"-template parameterto the enum. If I try to use that inside the token string, it just says it can't find the identifier, so I had to inject some non-token string in the middle that plays nice with the token string, where I can actually reference the parameter.

For completeness, here is how the code looks like now (I am completely horrified by the result):

[...]


and the usage just looks like this:

[...]

The "mixin(OUTPUT_REPRO_CASE!());" then expands to:

[...]


Thanks for your help!!!

Maybe core.reflect and codegen could help with this when it gets released

Reply via email to