The state of string interpolation

Adam D. Ruppe destructionator at
Fri Dec 7 01:19:35 UTC 2018

On Friday, 7 December 2018 at 00:43:43 UTC, Mike Franklin wrote:
> Can that be extended somehow to pass around expressions too 
> (i.e. expressions as rvalues)?

We kinda-sorta can, with `lazy void`. If we could get the code 
out of it as a string, that might be interesting. But I don't 
think it would hit the interp thing (whose library implementation 
is really just the mixin expression on the outside)

>     // It's already yelling at us with a ! operator.

Keep in mind that mixin templates currently do not actually need 
arguments listed.

More information about the Digitalmars-d mailing list