String Comparison Operator

Xinok via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Apr 30 09:15:41 PDT 2017


On Sunday, 30 April 2017 at 15:31:39 UTC, Jolly James wrote:
> Is there a String Comparison Operator in D?

Yeah, just the usual comparison operators:

"abc" == "abc"
"abc" != "ABC"


~ is for string concatenation, i.e.:

"abc" ~ "def" == "abcdef"


More information about the Digitalmars-d-learn mailing list