Does D has C#'s string.Empty?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 25 18:36:27 PDT 2014


On Fri, 26 Sep 2014 01:08:59 +0000
AsmMan via Digitalmars-d-learn <digitalmars-d-learn at puremagic.com>
wrote:

> > "" has length of 0. null has length of 0. two strings without 
> > content
> > are essentialy the same.
> but null has length? what's null in D?
i confused you here, sorry. what i mean is 'null string', not 'null' as
a type itself. i.e.
string a = ""; // "empty string"
string a = null; // "null string"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20140926/3cd18b8e/attachment.sig>


More information about the Digitalmars-d-learn mailing list