weird empty string

mogu via Digitalmars-d digitalmars-d at puremagic.com
Fri May 12 17:36:55 PDT 2017


```d
if (null)
     "1".writeln;
if ("")
     "2".writeln;
if ("" == null)
     "3".writeln;
```

Output:
2
3

How to understand this?


More information about the Digitalmars-d mailing list