simendsjo:

> void main() {
>      assert(is(typeof("") == typeof("".idup))); // both is immutable(char)[]
> 
>      assert(""      !is null);
>      assert("".idup !is null); // fails - s is null. Why?
> }

I think someone has even suggested to statically forbid "is null" on strings :-)

Bye,
bearophile

Reply via email to