[swift-evolution] [Proposal][Discussion] Qualified Imports

Félix Cloutier felixcca at yahoo.ca
Thu Jul 21 12:34:50 CDT 2016

 You probably know this better than me: will the compiler always recognize that what came from "#import/#include <Cocoa/Cocoa.h>" (not @import Cocoa) is the same as what comes from Swift's "import Cocoa"? What about non-module includes?
Are we saying that you can always re-import a module and the last import wins, or is that a special case for symbols that come from a C header instead of Swift code?

    On Thursday, July 21, 2016 9:36 AM, Robert Widmann <rwidmann at apple.com> wrote:

import Cocoa hiding (NSWindow)
Done.  This specific case is one of the reasons why imports are file-local.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160721/40736131/attachment.html>

More information about the swift-evolution mailing list