<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>mikeash.com pyblog/friday-qa-2014-08-15-swift-name-mangling.html comments</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>mikeash.com Recent Comments</description><lastBuildDate>Wed, 16 Sep 2026 08:55:44 GMT</lastBuildDate><generator>PyRSS2Gen-1.0.0</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Mike K - 2015-09-09 03:22:20</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>Thanks for the great article. It was really helpful.
&lt;br /&gt;
&lt;br /&gt;As you might know, the modified Punycode is just Punycode with upper-case letters instead of digits.  See implementation here: &lt;a href="https://gist.github.com/xtravar/6b52f59fb133229b360e"&gt;https://gist.github.com/xtravar/6b52f59fb133229b360e&lt;/a&gt;</description><guid isPermaLink="true">3c2de20218d52ca89219ae78943852b6</guid><pubDate>Wed, 09 Sep 2015 03:22:20 GMT</pubDate></item><item><title>Gabriele - 2015-08-02 20:22:18</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>In C++, when defining a function, we can use the extern "C" attribute to force the C style mangling, which makes the function callable from a C code (and maybe also change the ABI in use). Is there anything similar in Swift? Something similar to @objc but making a simple swift function callable from C? </description><guid isPermaLink="true">3d912d2af8891c43b1259d09dbed8fb6</guid><pubDate>Sun, 02 Aug 2015 20:22:18 GMT</pubDate></item><item><title>Paul Von Schrottky - 2015-02-04 12:58:03</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>I found a way, mangle a known class and extract the target name using regex "_TtC[0-9]+([^0-9]+)[0-9]+". Then use that to generate mangled class names for any other class at runtime.</description><guid isPermaLink="true">a9a640831948dc72b8dd9ec1dee28cd8</guid><pubDate>Wed, 04 Feb 2015 12:58:03 GMT</pubDate></item><item><title>Paul Von Schrottky - 2015-02-03 21:05:33</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>Do you know how to use the native Punycode converter? Let's say I have a ViewController, my app name is "Acá Estoy" and I want to generate the mangled name "_TtC10Aca__Estoy14ViewController".
&lt;br /&gt;I see that the Punycoding is adding an extra underscore for the acute "á", however I don't know how to generate this programatically.
&lt;br /&gt;&amp;nbsp;</description><guid isPermaLink="true">af20c275972ae5f230dcfd4ee2894d93</guid><pubDate>Tue, 03 Feb 2015 21:05:33 GMT</pubDate></item><item><title>Tonny - 2014-11-05 22:33:08</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>Good article. Even first several paragraphs revealed things for me that I have never thought of. Like the fact that in objective-c you cannot overload methods, since you won't explore while doing regular stuff.</description><guid isPermaLink="true">2f900588b7f642cf0bde8c61dee1ddf0</guid><pubDate>Wed, 05 Nov 2014 22:33:08 GMT</pubDate></item><item><title>glasspusher - 2014-08-20 05:12:52</title><link>http://www.mikeash.com/?page=pyblog/friday-qa-2014-08-15-swift-name-mangling.html#comments</link><description>Great set of articles! I don't get into the guts of things as much as I used to...my code doesn't need to be blazing fast, but understanding stuff underneath never hurts. Fascinating and I enjoy following along.</description><guid isPermaLink="true">9bb9a34d761ad8b03b297f8b90e5269d</guid><pubDate>Wed, 20 Aug 2014 05:12:52 GMT</pubDate></item></channel></rss>
