[Webkit-unassigned] [Bug 238780] New: Convention to indicate caller is responsible for maintaining external ref
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Apr 4 18:32:25 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=238780
Bug ID: 238780
Summary: Convention to indicate caller is responsible for
maintaining external ref
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: gnavamarino at apple.com
As recommended by Sam in bug 238747 and as this seems to be the preferred pattern to ensure a ref counted object remains for the scope of the call:
> I wonder ifs we should come up with some convention (naming or otherwise) to
> indicate that a caller is responsible for maintaining an external ref. Like,
> Document::close_mayDestroy(), or perhaps even take it a step further and
> require a separate type to call close()?
>
> Ref closer = document.closer()
> closer.close()
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220405/05f95454/attachment.htm>
More information about the webkit-unassigned
mailing list