|
|
|
|
|
by jsjsjsjsjsjs
2552 days ago
|
|
> - Nim: C/C++ interop is second to none. This is very wrong. There is perfect c interop - you can import c functions using {.importc.} pragma. C++ interop is best i have seen so far. You can use c++ template types! Here is the sample: https://github.com/3dicc/Urhonimo/blob/master/modules/contai... Of course it is not perfect. For example if you would like to override c++ method you will have to write a bit of c++ code using {.emit.} pragma. I do not know a single language that could map c++ template types into it's own generic types like nim can. |
|