Re: [swift-users] Experimenting with conditional conformances

2017-11-28 Thread Antonino Ficarra via swift-users
There are different algorithms for Element==CGPoint, Element==[CGPoint], Element==[AreaPoint], etc… Your second suggestion work: protocol Inertial { funcconvexHull( _ t:AffineTransform? ) -> [CGPoint] funcarea( _ t:AffineTransform? ) -> CGFloat funcfirstOrde

Re: [swift-users] Experimenting with conditional conformances

2017-11-28 Thread Slava Pestov via swift-users
Hi Antonio, This is explicitly mentioned in the original proposal. We do not allow multiple conditional conformances to be defined for the same type. Instead, is it possible to express your conformance as follows? extension Array : Intertial where Element : Inertial { … } Or do you really need

Re: [swift-users] Where to read about *.swiftmodule file format?

2017-11-28 Thread Slava Pestov via swift-users
Hi Volodymyr, The format is not documented anywhere and is subject to change. A good starting point is include/swift/Serialization/ModuleFormat.h, but I would first be curious to know what exactly you’re planning on doing with it. It might be better to extend swift-ide-test and similar utilitie

[swift-users] Experimenting with conditional conformances

2017-11-28 Thread Antonino Ficarra via swift-users
I’have a protocol: protocol Inertial { funcconvexHull( _ t:AffineTransform? ) -> [CGPoint] funcarea( _ t:AffineTransform? ) -> CGFloat funcfirstOrderMomentums( _ t:AffineTransform? ) -> (x:CGFloat,y:CGFloat) funcsecondOrderMomentums( _ t:AffineTrans

Re: [swift-users] Compile error trying to follow Swift for Windows MSVC instructions

2017-11-28 Thread Eric Wing via swift-users
On 11/14/17, Saleem Abdulrasool wrote: > I’ve not used the MSVC build mode very much. I suspect that this is a name > lookup failure and needs a namespace qualification. I’ll look into > tweaking that when I’m near a computer. In the mean time, I recommend > using the cross-compile or possibly

[swift-users] Where to read about *.swiftmodule file format?

2017-11-28 Thread Volodymyr B via swift-users
Hi Where to read about *.swiftmodule file format? And *.swiftdoc I want to understand container of it. would be good to have parser for third party IDEs. Best regards, Volodymyr Boichentsov ___ swift-users mailing list swift-users@swift.org h