Avatar
norio_nomura 8/8/2019 9:36 AM
https://discordapp.com/channels/291054398077927425/306995750418513920/607062064372121620
> Class Existential Container が Witness Table を保持するのはなぜかって疑問。 これ、今更だけど、 https://github.com/apple/swift/blob/master/docs/ABI/TypeLayout.rst#class-existential-containers に > Note that if no witness tables are needed, such as for the "any class" type protocol<class> or an Objective-C protocol type, then the only element of the layout is the heap object pointer. って注意書きがあるね。プロトコル制約がある時だけwitness tablesを持つ。
(edited)