Metatype Types
A concrete or existential Metatype in SIL must describe its representation. This can be:
- @thin,meaning that it requires no storage and thus necessarily represents an exact type (only allowed for concrete Metatypes);
- @thick,meaning that it stores a reference to a type or (if a concrete class) a subclass of that type; or
- @objc,meaning that it stores a reference to a class type (or a subclass thereof) using an Objective-C class object representation rather than the native Swift type-object representation.
用于类型和函数类型的描述
https://github.com/apple/swift/blob/master/docs/SIL.rst#Metatype-types
%2 = function_ref @ProtocolCase.normalStruct.init() -> ProtocolCase.normalStruct : [email protected](method) (@thin normalStruct.Type) -> normalStruct // user: %3
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。