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
@H_403_36@ 总结以上是内存溢出为你收集整理的swift的类型描述符全部内容,希望文章能够帮你解决swift的类型描述符所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)