Yauheni Akhotnikau wrote: >> The main difficulty is if the DSL needs to access symbols in the rest >> of the D code. > > I agree. > But how do you think do such things in the current approach? int i = 4; mixin("writefln(i)"); will print: 4