Xcode-beta (7A121l): Ability To Dynamically Crawl Value Types in Swift
Originator: | john | ||
Number: | rdar://21674391 | Date Originated: | 04-Jul-2015 10:19 AM |
Status: | Open | Resolved: | |
Product: | Developer Tools | Product Version: | Xcode-beta (7A121l) |
Classification: | Enhancement | Reproducible: | Always |
Summary: It can be helpful to dynamically crawl a type hierarchy to get the list of types that conform to a protocol. For instance, one might want to have different modules for implementing some functionality that can be swapped out at runtime, and to look these up at run time rather than having a duplicated static list. objc_getClassList allows us to do this with classes, but in some cases value types would be more appropriate. Steps to Reproduce: 1. Create a protocol 2. Create a struct that conforms to the protocol 3. Call objc_getClassList looking for the struct Expected Results: I would expect to find the struct Actual Results: It does not include the struct Regression: Notes:
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!