operator "~" does not check type?

Cheng Wei rivercheng at gmail.com
Wed Oct 12 00:08:05 PDT 2011


The following expression compiles but does not make sense.

string str = "hello" ~ 10;
assert(str == "hello\n");

Is this a useful feature or just a bug?



More information about the Digitalmars-d-learn mailing list