On 9/8/11, zeljkog <[email protected]> wrote:
> alias toUTFz!(const(wchar)*, string) toUTF16z;
> alias toUTFz!(const(wchar)*, wstring) toUTF16z;

I think one difference (if I'm right) is that using a non-templated
function such as this:

const(wchar)* toUTF16z(string s)
{
    return toUTFz!(const(wchar)*)(s);
}

can enable me to pre-compile a module to an object file (call it
unicode.obj), while using an alias the object code for toUTF16z has to
be generated when the client module (main.d) is compiled.

Reply via email to