Does D has C#'s string.Empty?

AsmMan via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Sep 25 17:24:09 PDT 2014


On Thursday, 25 September 2014 at 06:41:03 UTC, SlomoTheBrave 
wrote:
> On Thursday, 25 September 2014 at 05:29:37 UTC, AsmMan wrote:
>> Does D has C#'s string.Empty?
>
> string.init ?
>
> ----
>     string a;
>     a = string.init;
>     assert( a == "");
> ----
>
> does the job for the type string at least.

Thanks.:)


More information about the Digitalmars-d-learn mailing list