Hello,
I was wandering if it is possible to mix modules which are build with different backends (c c++) and if so what problems may occur? Please excuse if I missed relevant information in the docs or other posts.
Many thanks in advance.
C++ code is not valid C code.
Standardized C code is valid C++ code in 99.99% of case (and you probably don't want to use the C code that is not valid C++ as it's usually some weird un-intuitive stuff).
So in practice, you can just use C++ back-end.
Many thanks!
I'm currently working on a new version of the arrayfire nim wrapper and have the choice to use the c or c++ arrayfire API - from my point of view both ways would work well. Should I prefer one backend?
Should I prefer one backend?
You should prefer the C++ backend as it performs better type checking and has a usually faster exception handling implementation.