"new class(" ~ expr ~ ") {\n" ~
" alias _T = typeof(" ~ expr ~ ");\n" ~
" static if (is(_T : int)) {\n" ~
" enum formatString = \"%s (detected integer): %d\";\n" ~
" } else static if (is(_T : double)) {\n" ~
" enum formatString = \"%s (detected double): %f\";\n" ~
" enum formatString = \"%s (default: \" ~ _T.stringof ~ \"): %s\";\n" ~
" alias _seq = imported!\"std.meta\".AliasSeq!(formatString,\"" ~ expr ~ "\",_v);\n " ~
import std.stdio : writefln;
writefln(mixin(i!"a + 10"));
writefln(mixin(i!"sqrt(5.0) / 2"));