Signals and Slots in D
Tom S
h3r3tic at remove.mat.uni.torun.pl
Thu Sep 28 21:01:33 PDT 2006
Tom S wrote:
> Walter Bright wrote:
>> Ok, before anyone jumps on me, this has all been discussed in
>> http://www.digitalmars.com/d/archives/28456.html
>>
>> Looks like the deletion problem is a real issue. Let me think about it
>> a bit.
>
> could something like this work ?
>
>
> // ----
>
(snip)
>
> // ----
>
due to a popular demand, the dtor in 'Observee' can be changed to:
~this() {
foreach (o; observers) o.observee = null;
}
More information about the Digitalmars-d
mailing list