GC.addRange in pure function

Dominikus Dittes Scherkl dominikus at scherkl.de
Wed Feb 10 08:10:34 UTC 2021


On Tuesday, 9 February 2021 at 21:00:39 UTC, Paul Backus wrote:
>> On Tuesday, 9 February 2021 at 19:53:27 UTC, Temtaime wrote:
>>> pure is broken. Just don't [use it]
>
> Allowing memory allocation in pure code in a language that can 
> distinguish between pointer equality and value equality is, 
> let's say, "unprincipled."

pure in D is a very useful concept, even if it's not literally 
the same as pure in functional languages. Recommending not to use 
it is bad advice IMHO.


More information about the Digitalmars-d-learn mailing list