writeln, alias this and dynamic arrays.
Michael V. Franklin
slavo5150 at yahoo.com
Fri Nov 17 06:57:16 UTC 2017
On Friday, 17 November 2017 at 02:13:54 UTC, matthewh wrote:
> [...]
> as is it produces:
>
> [1, 2, 3, 4, 5, 6, 7, 8]
> []
>
> I expected it to produce:
>
> [1, 2, 3, 4, 5, 6, 7, 8]
> [1, 2, 3, 4, 5, 6, 7, 8]
>
> And with the toString override included it does.
>
> Why does the version without the toString override output an
> empty array?
Actually, it looks like it's this 4-year old bug.
https://issues.dlang.org/show_bug.cgi?id=9506
So frustrating :(
Mike
More information about the Digitalmars-d-learn
mailing list