Send empty assoc array to function

Steven Schveighoffer schveiguy at
Thu Jul 9 21:04:57 UTC 2020

On 7/9/20 4:31 PM, Max Samukha wrote:
> On Thursday, 9 July 2020 at 20:24:11 UTC, Steven Schveighoffer wrote:
>> Yes, that is correct.
> Why isn't [] accepted as an empty AA literal?

Because it's an empty dynamic array literal.

If D were to accept an empty AA literal, I'd expect it to be [:].


More information about the Digitalmars-d-learn mailing list