Implicit string lit conversion to wstring/dstring
Nick Sabalausky
a at a.a
Wed Mar 14 11:25:32 PDT 2012
"Alex Rønne Petersen" <xtzgzorex at gmail.com> wrote in message
news:jjqn9f$1iht$1 at digitalmars.com...
>
> But then... why not just make it take a dstring? Maybe I'm not following
> your intent here...
>
Probably because then this becomes an error:
string s = "abc";
func(s);
It's an interesting problem. I'm not aware of a solution. I suppose you'd
just have to make it take only dstring and then expect string/wstring vars
to be handled by the caller like "func(to!dstring(s))"
More information about the Digitalmars-d
mailing list