On Saturday, 10 October 2015 at 15:20:04 UTC, tcak wrote:
[code] int[] list;list = new int[0]; std.stdio.writeln("Is Null ? ", (list is null)); [/code] Result is "Is Null? true".Is this the correct behaviour? I would expect compiler to point to an address in the heap, but set the length as 0. So, it wouldn't return null, but the length would be 0 only.
Long discussion: http://forum.dlang.org/thread/[email protected]
