Re:Running Swift code on Android
by tpaksoy on Wednesday October 14, 2015 @12:19PM
(#10387512)
Having to deal with mangled symbols is pretty annoying. Is it not possible to give a directive to the Swift compiler to disable mangling? Like rust has:
[ Parent
| on HN ]
How would it resolve the differences in types without mangling?
Re:Running Swift code on Android
by plorkyeran on Wednesday October 14, 2015 @02:29PM
(#10388425)
No. Currently to call Swift from C (or any other language that supports C-like things) you either have to use the mangled names or write an obj-c wrapper.