[swift-evolution] Rewrite imported C function signatures

Carlos Rodríguez Domínguez carlos at everywaretech.es
Sat Mar 26 08:51:51 CDT 2016


I’ve been rethinking the proposal and maybe a more suitable syntax should be:

#override(socket(_:,_:,_:)->Int32)
func socket(domain:SocketDomain, type:SocketType, protocol:SocketProtocol) -> socket_t? {
	//…
}

In this way it is clearer that the idea is to bring func overriding to global functions.



More information about the swift-evolution mailing list