How to insert code in place with templates/mixins?

rempas rempas at tutanota.com
Mon Dec 20 20:49:31 UTC 2021


On Monday, 20 December 2021 at 18:58:39 UTC, bachmeier wrote:
>
> You can see the ["String mixins" section 
> here](http://ddili.org/ders/d.en/mixin.html) for more details. 
> Mixins are generated at compile time, so if you're referring to 
> a string mixin inside a runtime loop, the code will not be 
> generated every time the loop runs.

Thanks! Yeah after I commented, I thought a little bit about how 
they generate code at compile time like you said and understand 
that what I'm saying doesn't make much sense. Have a nice day my 
friend!


More information about the Digitalmars-d-learn mailing list