Recently, I’ve implemented a weak pointer class that manages its resource pointer by setting it to NULL in every instance that uses that same resource.
That way, weak pointers allow for notifying anyone who has a pointer to that resource once the resource gets deleted.
Good idea, especially since p407 uses a dynamic editor environment with objects that reference others that might get deleted at any point.
