Want reasonable reference counting? Disable automatic sharing of immutable
Elronnd
elronnd at elronnd.net
Sun Nov 14 02:24:42 UTC 2021
On Sunday, 14 November 2021 at 01:15:06 UTC, Stanislav Blinov
wrote:
> Indeed, forget allocation, given that I'm talking about
> collection. But anyway, so what? What do signals have to do
> with `new` pretending to be pure when it calls destructors that
> aren't?
A signal handler may not be pure, and it may be called at any
time. Including during the execution of a pure function. Hence,
your argument implies that no function should ever be marked as
pure, because it may be interrupted by a signal handler which has
some effects.
More information about the Digitalmars-d
mailing list