Re: [swift-dev] id-as-Any and ObjC generic parameters

2016-07-07 Thread Joe Groff via swift-dev
> On Jul 7, 2016, at 5:26 PM, John McCall wrote: > > Suppose we are calling a function that is generic over T, where T: AnyObject. > This comes up when e.g. calling an initializer for an ObjC generic class. > > Today we allow conversions from [String] to [NSString], String to NSString, > and

Re: [swift-dev] [RFC] Finer grained OS checks

2016-07-07 Thread William Dillon via swift-dev
Hi all, I Agree with Saleem that this is a worthwhile discussion, and I think I agree with Jordan that word environment seems a little bit wrong to me. Following the discussion, it feels to me like what we're really concerned about is libc and ABI. Most of the examples that Saleem gave seems t

Re: [swift-dev] [RFC] Finer grained OS checks

2016-07-07 Thread Erica Sadun via swift-dev
Just want to throw this into the discussion: * https://github.com/apple/swift-evolution/pull/369 Also discussions on -evolution, which do touch on "Apple-like", etc. * http://thread.gmane.org/gmane.comp.lang.swift.evolution/7516 * http://thread.gmane.org/gmane.comp.lang.swift.evolution/12065 -

Re: [swift-dev] id-as-Any and ObjC generic parameters

2016-07-07 Thread Jordan Rose via swift-dev
> On Jul 7, 2016, at 17:26, John McCall via swift-dev > wrote: > > Suppose we are calling a function that is generic over T, where T: AnyObject. > This comes up when e.g. calling an initializer for an ObjC generic class. > > Today we allow conversions from [String] to [NSString], String to N

Re: [swift-dev] [RFC] Finer grained OS checks

2016-07-07 Thread Jordan Rose via swift-dev
Thanks for sending this out, Saleem! I’m not convinced that gnu/uclibc/musl are environment variants worth testing for, nor do I think we actually want to model Android as a kind of Linux. It’s unclear whether “environment” is another set of mutually-exclusive options (enum-like) or a way to ch

[swift-dev] [RFC] Finer grained OS checks

2016-07-07 Thread Saleem Abdulrasool via swift-dev
Hi, Id like to revive the discussion around OS "variants". I've been doing some work to bring up Windows without any emulation layer (MSVCRT based) as a viable host environment. This work is bringing to light the need for more finer grained OS checks. Currently, we have the `os` compilation con

[swift-dev] id-as-Any and ObjC generic parameters

2016-07-07 Thread John McCall via swift-dev
Suppose we are calling a function that is generic over T, where T: AnyObject. This comes up when e.g. calling an initializer for an ObjC generic class. Today we allow conversions from [String] to [NSString], String to NSString, and [String] to [T], but we do not allow a conversion from String t

Re: [swift-dev] Unsupported imported target type MODULE_LIBRARY

2016-07-07 Thread Michael Gottesman via swift-dev
I am preparing a fix. Its in this PR: https://github.com/apple/swift/pull/3406 Michael > On Jul 7, 2016, at 4:30 PM, David Farler wrote: > > Adding +Michael Gottesman who changed some things around in this file. I also > hit this with: > > build-script -r --debug-swift -x > > CMake Error at

Re: [swift-dev] Unsupported imported target type MODULE_LIBRARY

2016-07-07 Thread David Farler via swift-dev
Adding +Michael Gottesman who changed some things around in this file. I also hit this with: build-script -r --debug-swift -x CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:67 (message): Unsupported imported target type MODULE_LIBRARY Call Stack (most recent call first): cmake/mod

Re: [swift-dev] Fixits

2016-07-07 Thread Harlan Haskins via swift-dev
And most fix-its make good starter bugs, so it’s good to label them that way! — Harlan > On Jul 7, 2016, at 1:31 PM, Joe Groff via swift-dev > wrote: > > >> On Jul 7, 2016, at 10:19 AM, Erica Sadun via swift-dev >> wrote: >> >> Where is the best place to request fixits? bugs.swift.org or o

Re: [swift-dev] Fixits

2016-07-07 Thread Joe Groff via swift-dev
> On Jul 7, 2016, at 10:19 AM, Erica Sadun via swift-dev > wrote: > > Where is the best place to request fixits? bugs.swift.org or on this list? > > I've been porting a lot of code to Swift 3 and finding a lot of issue and no > before you ask, I stupidly did not write them down as I went and

[swift-dev] Unsupported imported target type MODULE_LIBRARY

2016-07-07 Thread Minsheng Liu via swift-dev
Hi, I am running the second preview of macOS Sierra and am attempting to build swift. LLVM and cmark built successfully, but swift failed during the configuration stage with the error message Unsupported imported target type MODULE_LIBRARY I hacked the cmake file by bypassing the conditional che

[swift-dev] Fixits

2016-07-07 Thread Erica Sadun via swift-dev
Where is the best place to request fixits? bugs.swift.org or on this list? I've been porting a lot of code to Swift 3 and finding a lot of issue and no before you ask, I stupidly did not write them down as I went and I now wish I had -- I just was on a deadline and needed the code ported and wor