defining a new method exho! (derived from echo + mixin...:-)auto exho(string x)(){ return mixin("writeln("~interp!x~")");} You can just write: exho!"The number ${num} doubled is ${num * 2}!"
It requires 'num' to be available to the exho function definition so will not
work in the general case.
