Doesn't std.signal completely miss the point?
Johannes Pfau
spam at example.com
Tue Sep 6 00:45:51 PDT 2011
Andrej Mitrovic wrote:
>Well it seems I can't use this with freeform delegates that are not
>class fields. This could definitely use some improvement.
You're talking about phobos std.signals, not my implementation, right?
Last time I asked on the mailing list I was told that std.signals was
written in the D1 days and not updated since then.
The reason why this only works with class delegates: std.signals looks
up the class a delegate belongs to and registers a callback in druntime
to get notified when the object gets destroyed. This seems only useful
with explicit delete, which is now deprecated.
--
Johannes Pfau
More information about the Digitalmars-d-learn
mailing list