[swift-evolution] [Discussion] Enforcing Calling Super

Greg Parker gparker at apple.com
Mon Feb 22 19:35:43 CST 2016


> On Feb 22, 2016, at 5:14 PM, Ben Rimmington via swift-evolution <swift-evolution at swift.org> wrote:
> 
>> On 23 Feb 2016, at 00:51, Kyle Sherman via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> Here is an updated version of the proposal. If no one has any other comments. Please review and let me know, because I would like to submit it for a review after I get comments on this version.
> 
> You could mention the `objc_requires_super` attribute in your proposal.
> 
> <http://clang.llvm.org/docs/AttributeReference.html#objc-requires-super>
> 
> But I haven't found it used in Apple's frameworks.

Foundation.h wraps it as NS_REQUIRES_SUPER. That spelling is used in most places. There was no deliberate effort to annotate old API so it is likely that many potential uses were not updated.


-- 
Greg Parker     gparker at apple.com     Runtime Wrangler




More information about the swift-evolution mailing list