What is the correct way to test for an empty string?
Adam D. Ruppe
destructionator at gmail.com
Tue Jul 16 12:26:28 PDT 2013
I just use
if(string.length == 0) {}
which covers both cases and is pretty intuitive too.
More information about the Digitalmars-d-learn
mailing list