06.01.2014 13:11, Dicebot пишет:
Some time ago there have been a review for `std.signal` Phobos proposal
It have not received much feedback and I was a it too busy to proceed
with final voting at that moment but with no outstanding issues to
address nothing prevents that final step.
Let's put 2 week deadline to refresh memories about the proposal and
make some decision. Voting closes at January 20th 23:59 GMT 0
Please take some time and help make Phobos better ;)
Any signals implementation is at least blocked by the fact closure
delegates lifetime can't be determined (see issues  and ).
Requirement to explicitly pass owning object is redundant and
unacceptable, such code must work:
/// Usage: don't pass struct member function delegates as `del`.
void f(void delegate() del)
Yes, I still don't see an elegant way to fix the language for struct
member function delegates, but for closures there is issue .
Another way to make things work is a runtime support for weak
references, see druntime pull 639 discussion .
Also see this thread for more discussion about signals problems: .
Денис В. Шеломовский
Denis V. Shelomovskij