Re:D is being used for autonomous driving research – Audi an...
by Leszek on Tuesday June 25, 2019 @07:27AM
(#20273084)
"second to none" means "best" ("there is no one it is second to, thus it is first")
Re:D is being used for autonomous driving research – Audi an...
by jsjsjsjsjsjs on Tuesday June 25, 2019 @10:27AM
(#20274515)
TIL. Not native english-speaker. My bad.
Re:D is being used for autonomous driving research – Audi an...
by totalperspectiv on Tuesday June 25, 2019 @10:54AM
(#20274816)
You made my point better though! Nim interop is awesome.
Re:D is being used for autonomous driving research – Audi an...
by mhh__ on Tuesday June 25, 2019 @10:53AM
(#20274801)
D's C++ interop looks better at a glance.
With a simple extern(C++) you can use templates, classes and vtable's are matched up to single inheritance. There is also some experimental work on catching C++ exceptions but I've never tried to use it.
Re:D is being used for autonomous driving research – Audi an...
by p0nce on Tuesday June 25, 2019 @12:57PM
(#20276243)
Also: COM support. This can be incredibly useful for interop.
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.