3 ms·
Congrats to the team! Could Nim be used to generate a framework for Xcode and the the same code be used in a Windows C++ or .NET project? I've been looking fo
by pier25 7y ago
Congrats to the team!
Could Nim be used to generate a framework for Xcode and the the same code be used in a Windows C++ or .NET project?
I've been looking for ages for a cross platform solution that can be used to create dynamic or static libraries that isn't C++.
- nepeckman 7y agoAs far as I know, that should be doable. Nim can compile to Objective C as well as C++, and has a `when` statement that makes it easy to produce code for a specific OS or language target. Not an Xcode or .NET expert though, so not sure how difficult it is to hook into those platforms.
- PMunch 7y agoWithout knowing any more specifics about your problem it seems like this would be possible in Nim. It is cross platform and can generate dynamic libraries across them. I guess you could somehow also set up a static library, but I've never tried that myself. So as long as your target language(s) have the ability to use dynamic libraries then Nim should be able to supply them.