Empty associative array

Dukc ajieskola at gmail.com
Mon Aug 9 12:30:34 UTC 2021


On Monday, 9 August 2021 at 12:16:44 UTC, deadalnix wrote:
> There is an immediate problem with this: how does one gets an 
> empty, but non null, associative array?


I think this ought to work for that:

```d
int[int] empty = [];
```

However, compiler complains `Error: cannot have associative array 
key of void`.


More information about the Digitalmars-d mailing list