I just spent a while debugging an error in code I wrote.

I added a couple new Foo* members to a class.  And forgot to 0 them in
one of the constructors.

RefPtr<T>, OwnPtr<T> would have done this for me.  But I wanted these
to be weak pointers.

How about we add a Ptr<T> (or WeakPtr<T> or AutoNull<T> or whatever)
to wtf to stop this nonsense.

-eric
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to