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? Jose Cheyo Jimenez via swift-evolution <swift-evolution@swift.org>于2016年7月24日 周日04:45写道: > I'm finding it really hard to see the advantage of this proposal with out > reconciling the possibility of .self going away. I think this should be > postponed after .self is reviewed in swift 4. Premature optimization imo. > > On Jul 22, 2016, at 3:20 PM, David Hart via swift-evolution < > swift-evolution@swift.org> wrote: > > Where do these double generics come from? Never saw them... > > On 22 Jul 2016, at 17:54, Anton Zhilin <antonyzhi...@gmail.com> wrote: > > 2016-07-22 18:51 GMT+03:00 David Hart <da...@hartbit.com>: > >> Isn't the solution to a lot of these issues allowing explicit >> generalization instead of this meta type business? >> > > And what would you suggest for "double generics" in initializers? > ExampleType<Int><Double>() // not good > > _______________________________________________ > swift-evolution mailing list > swift-evolution@swift.org > https://lists.swift.org/mailman/listinfo/swift-evolution > > _______________________________________________ > swift-evolution mailing list > swift-evolution@swift.org > https://lists.swift.org/mailman/listinfo/swift-evolution >
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution