On Thursday, September 08, 2011 21:40:30 Andrej Mitrovic wrote: > On 9/8/11, Timon Gehr <[email protected]> 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.
It was discussed. Andrei was in favor of just getting rid of toUTF16z (he pretty much wants to get rid of all functions that have the type in their name like that). So, we ended up scheduling toUTF16z for deprecation rather than adjusting it like that. - Jonathan M Davis
