How to correctly integrate D library to Swift/Obj-C mobile project?

kinke noone at nowhere.com
Mon Jun 22 19:51:50 UTC 2020


On Monday, 22 June 2020 at 19:41:22 UTC, Vlad wrote:
> Usually, when you connect c++/c, you have header files so you 
> can call functions from Objective-C/swift code. We need 
> something similar.

There's a pretty recent -HC switch to generate C++ headers from 
`extern(C++)` declarations. Not sure how usable it is at this 
point.

> Is it even possible to compile D for iOS and use it the same 
> way as compiled C++ static library? (We do need a D runtime)

iOS shouldn't be any different than other targets (especially 
macOS) in this regard.


More information about the Digitalmars-d-learn mailing list