On Tue, Oct 4, 2011 at 2:14 PM, James Robinson <[email protected]> wrote:
>
> Is it to document the nullity of the out-param?
>

Yes, and it also prevents mistakes like:

#include <cstdio>

class base { ... };
class derived : public base { ... };

void getBase(base* b) { *b = base(); }

int main() {
    derived d;
    getBase(&d);
    return 0;
}

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

Reply via email to