Shouldn't hasSwappableElements work on char arrays?
Ali Çehreli
acehreli at yahoo.com
Thu Feb 24 15:22:46 PST 2011
On 02/24/2011 12:14 PM, Jonathan M Davis wrote:
> the type of "test" is string
Sorry to take it out of context but that statement is not always
correct. String literals can be string, wstring, or dstring:
void foo(string c, wstring w, dstring d)
{}
void main()
{
foo("c", "w", "d"); // <- this compiles
// But the following fails to compile:
// string s;
// foo(s, s, s);
}
Ali
More information about the Digitalmars-d
mailing list