<div dir="ltr"><div>Option 1. Export your Swift to Obj-C. Write Obj-C that exports C. Compile to a library.<br></div><div><br></div><div>Option 2. Use this syntax and swift-demangle to figure out the symbols:<br></div><div><br><div><p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo"><span style="color:rgb(187,44,162)">public</span> <span style="color:rgb(187,44,162)">var</span> badfood:<span style="color:rgb(187,44,162)">@convention</span>(c)(<span style="color:rgb(112,61,170)">Int</span>) -&gt; <span style="color:rgb(112,61,170)">Void</span> = { (i:<span style="color:rgb(112,61,170)">Int</span>) <span style="color:rgb(187,44,162)">in</span></p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">    <span style="color:rgb(61,29,129)">print</span>(i)</p>
<p style="margin:0px;font-size:11px;line-height:normal;font-family:Menlo">}</p></div><div><br></div><div>-david<br></div><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 12/23/15, Thomas Catterall via swift-users &lt;<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>&gt; wrote:<br>
&gt; Indeed I was - I&#39;m quite sorry for the confusion, I didn&#39;t make my intent<br>
&gt; clear as I should have, such as through example. What I&#39;m referring to is,<br>
&gt; for instance, offering a way for a Ruby library to interface with a module<br>
&gt; written in Swift to communicate with Redis (as an example, not something I&#39;m<br>
&gt; thinking too seriously about).<br></span></blockquote></div></div></div>