Brad Roberts wrote:

libraries that themselves aren't marked pure, there's a real need for escape hatches. A simple example: anything that has a malloc/free pair.

they aren't pure. it is a sad misconception about purity, which D makes even more complex by allowing to mark, for example, *setters* as pure. but still, `malloc()` and `free()` aren't pure. and while various functions in std.math, for example, are marked `pure`, they aren't too.

Reply via email to