Hello all, I was wondering what an exclamation mark in a swift parameter listing means. For instance, I used Elements Oxidizer Live to translate some C# code into Swift. Reviewing it, I found the following (among others): @DllImport("ScriptHookV.dll") private static __extern func scriptRegister(_ module: System.IntPtr!, _ LP_SCRIPT_MAIN: LP_SCRIPT_MAINDelegate!) What I'm wondering is what does the '!' in that list of parameters mean? I also saw it when writing another program: func MainForm_Load(_ sender: System.Object!, _ e: System.EventArgs!) { // ... } I don't recall the swift book teaching you what that means, so could someone tell me what those mean? -- Signed, Ethin D. Probst _______________________________________________ swift-users mailing list swift-users@swift.org https://lists.swift.org/mailman/listinfo/swift-users
[swift-users] Exclamation mark's in swift parameter listings?
Ethin Probst via swift-users Mon, 09 Jan 2017 16:23:34 -0800
- [swift-users] Exclamation mark's in swift pa... Ethin Probst via swift-users
- Re: [swift-users] Exclamation mark's in... Daniel Dunbar via swift-users
- Re: [swift-users] Exclamation mark's in... Rien via swift-users
- Re: [swift-users] Exclamation mark'... Joe Groff via swift-users
- Re: [swift-users] Exclamation m... Rien via swift-users
- Re: [swift-users] Exclamati... Slava Pestov via swift-users
- Re: [swift-users] Excl... Rien via swift-users
- Re: [swift-users] ... Slava Pestov via swift-users