What is the correct way to test for an empty string?

Gary Willoughby dev at nomad.so
Tue Jul 16 12:23:20 PDT 2013


What is the correct way to test for an empty string?

I've used

if (string == "")

and

if (string is null)

and both (O_o) in some places, it's starting to do my head in. 
What is the correct way?


More information about the Digitalmars-d-learn mailing list