On Mon, Feb 18, 2019 at 01:34:37PM +, Eduard Staniloiu via
Digitalmars-d-learn wrote:
> Hello
>
> According to the spec[0], D supports zero length arrays [1].
Huh. I didn't even know D was supposed to support this. I found a few
examples of this usage in Adam Ruppe's arsd code, where the ze
Hello
According to the spec[0], D supports zero length arrays [1].
I have given this a shot at https://run.dlang.io/is/PwbPxJ
Attempting to use the zero-length array results in a compiler
error
`a.contents[2]` -> Error: array index 2 is out of bounds
(*a).contents[0 .. 0]
The way I've use