Signals and Slots in D

Lionello Lunesu lionello at lunesu.remove.com
Fri Sep 29 12:14:11 PDT 2006


> But how can you tell if _ptr is valid or not? If you can't, it's pretty 
> useless, as you can never safely dereference it...

Check my other post. There, I've declared an interface IOnDelete with 1 
method OnDelete. The pointer-wrapper implements the interface and sets its 
pointer to null. The objects pointed-to would have to keep a list of 
IOnDelete's, though.

L. 





More information about the Digitalmars-d mailing list