On Friday, 28 December 2018 at 12:34:27 UTC, rikki cattermole wrote: > No need. > > import std.stdio; > import std.format; > > void main() { > int x; > mixin("x = %d;".format(8)); > writeln(x); > } Yes, but for the second case it would be ugly... mixin("x = {0}; y = {1}", x, y); S.