Why std.array : array needs pure postblit?

Andrea Fontana nospam at example.com
Fri Jun 15 11:56:19 UTC 2018


On Friday, 15 June 2018 at 11:48:59 UTC, Andrea Fontana wrote:
> On Friday, 15 June 2018 at 11:25:49 UTC, Basile B. wrote:
>
>>> Hello, i've tested locally and it can works by making 
>>> `Appender.reserve()` and `Appender.ensureAddable()` function 
>>> templates.
>>>
>
> That was my idea too. But I wonder if pureness of reserve and 
> ensureAddable have a particular reason.

My point is: if we remove pure from those functions it is 
inferred , isn't it? Why does we need to force it there?


More information about the Digitalmars-d-learn mailing list