2016-07-24 12:21 GMT+03:00 Boris Wang via swift-evolution < swift-evolution@swift.org>:
> just write code in playground: > struct MyStruct { > var t = 0 > } > sizeof(MyStruct) > > Compiler error: > Missing '.self' for reference to metatype of type 'MyStruct' > > The metatype is from swift it self! > > What the hell was the .self? > Boris, you should write `sizeof(MyStruct.self)` in your example. Removal of `.self` is deferred from Swift 3. SE lists are not the best place to learn about metatypes, but here is some explanation: https://gist.github.com/Anton3/25a66751812f14f76cacc5e382339522
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution