4 ms·
I suppose if Swift can only interoperate with C APIs, Win32 would be the only option.
by thought_alarm 6y ago
I suppose if Swift can only interoperate with C APIs, Win32 would be the only option.
- ratww 6y agoWell, Swift uses LLVM, so it's possible to link it to C++ code with extern "C" declarations.
- rvz 6y agoAccording to this document, direct C++ interop will soon be done without the need of extern "C" wrappers. [0] [0] https://github.com/apple/swift/blob/master/docs/CppInteroperabilityManifesto.md https://github.com/apple/swift/blob/master/docs/CppInteroper...
- jacobush 6y agoThat's as they say, not even wrong. :-D The C ABI is stable. Any (normal) C compiler and a bunch of compilers of other languages can produce blobs which can be linked with each other, and by extension with C++ code with extern "C" declarations.