Swift: Access Modifiers

Originator:timothy.broder
Number:rdar://17236953 Date Originated:09-Jun-2014 03:38 PM
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification:Feature (New) Reproducible:Not Applicable
 
In Objective-C instance data can be public, protected or private. For example:

@interface Foo : NSObject
{
  @public
    int x;
  @protected:
    int y;
  @private:
    int z;
  }
-(int) apple;
-(int) pear;
-(int) banana;
@end

From this thread, it sounds like this is coming. https://devforums.apple.com/thread/227288?

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!