Signal, event and bicycle
Michael
pr at m1xa.com
Sun Oct 13 07:29:48 PDT 2013
> From a quick glance at your code, I believe you are using the
> hooks wrong. In particular, what's the purpose of:
>
> this.attachOnDestroy(&onSelfDestroy);
>
> ?
It prevents InvalidMemoryOperationError when in different cases
observer or observable not destroyed manually;
Also it is was implemented in such way because I can change a
strategy of event emitting. Yes, may be it was written in
completely wrong way.
Once again it was an experiment ;)
More information about the Digitalmars-d
mailing list