Reputation: 23799
I'm curious: has anyone used D together with .NET languages? Is that even possible? What kind of stuff is easier/makes sense to do in D that's hard to do in, say, C++/CLI?
Upvotes: 15
Views: 2204
Reputation: 2174
I believe D can call .NET assemlies visible via COM: http://wiki.dlang.org/COM_Programming.
Upvotes: 1
Reputation: 8943
There is also D for .NET which is a way of compiling D code right to CIL.
The other answers are correct in that sharing code with the native implementation is easy too.
Upvotes: 2
Reputation: 564451
You can call a D DLL by creating a DLL with a C Interface, and then calling it via P/Invoke from .NET.
Upvotes: 3
Reputation: 1123
Using D together with .NET is very possible. The reason:
So the considering the technicalities, it's completely possible.
With regards to what D makes easier than C++, the answer is fairly easy: "Everything". In a sense, D is really just a copy of C++ with just about everything done simpler. Sure that's only a half story, but reasonably true.
Upvotes: 12
Reputation: 5121
http://the-free-meme.blogspot.com/ is a blog by someone who is working on getting d on dot net.
Edit:
nanu and nono are projects that are trying to get mono/D working but both have not had any changes in there svn /trunk in the last year.
Upvotes: 6