Cannot make my shared PureMallocator callable in pure functions

ag0aep6g anonymous at example.com
Sat Feb 17 13:32:37 UTC 2018


On 02/17/2018 01:35 PM, rikki cattermole wrote:
> pure means no globals. As in none :)

... except immutable ones. And since PureMallocator has no fields, 
`instance` can be made immutable, and all the methods can be made static 
or const. Then they can be used in `pure` code.


More information about the Digitalmars-d-learn mailing list