On 9/8/11, Timon Gehr <timon.gehr at gmx.ch> wrote: > For now, this will do: > > auto toUTF16z(S)(S str){return toUTFz!(const(wchar)*)(str);} That'll do. Works with UFCS so it's perfect. It could have even stayed in std.utf like this and just forward to toUTFz internally without having to be deprecated.