Why std.array : array needs pure postblit?

Basile B. b2.temp.temp.temp at gmx.gmx.gmx.com.com
Fri Jun 15 11:24:42 UTC 2018


On Friday, 15 June 2018 at 11:15:03 UTC, Andrea Fontana wrote:
> Check this code:
> https://run.dlang.io/is/PoluHI
>
> It won't work, because array appender requires a pure postblit.
>
> Why? Can we remove this limitation?
>
> Andrea

Hello, i've tested locally and it can works by making 
`Appender.reserve()` and `Appender.ensureAddable()` function 
templates.

If you want to open an issue i'd be okay to propose a PR.


More information about the Digitalmars-d-learn mailing list