What    |Removed                     |Added
                 CC|                            |

--- Comment #1 from 2012-08-26 04:38:12 PDT ---
This compiles:
f(() => null);

This causes no assert to fire:
foo(() => (int[]).init);

While this doesn't even compile:
foo(() => []);

Error: function (int[] function() del) is not callable using argument
types (void[] function() pure nothrow @safe)

See also Issue 7007

Since lot of time in D dynamic arrays are not pointers, so generally accepting
"null" as empty array literal is a wrong design decision, especially since the
"[]" literal is available.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to