Cannot make my shared PureMallocator callable in pure functions
Nordlöw
per.nordlow at gmail.com
Sat Feb 17 12:33:25 UTC 2018
I'm struggling with making
https://github.com/nordlow/phobos-next/blob/master/src/pure_mallocator.d
callable in pure functions such as here
https://github.com/nordlow/phobos-next/blob/master/src/pure_mallocator.d#L84
Shouldn't a shared
static shared PureMallocator instance;
make it possible to call
PureMallocator.instance.allocate(16);
in pure functions?
More information about the Digitalmars-d-learn
mailing list