www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Bridging C++ and C#

reply Brad Anderson <eco gnuk.net> writes:
The Mono guys are doing some interesting stuff with being able to access
C++ from C# (and other CLR languages) that I thought some people in here
might find interesting.

http://tirania.org/blog/archive/2011/Dec-19.html

It makes me wonder how practical it would be to build upon their work to
extend the support for C++ D already has.
Dec 19 2011
parent reply "Adam Wilson" <flyboynw gmail.com> writes:
On Mon, 19 Dec 2011 15:53:25 -0800, Brad Anderson <eco gnuk.net> wrote:

 The Mono guys are doing some interesting stuff with being able to access
 C++ from C# (and other CLR languages) that I thought some people in here
 might find interesting.

 http://tirania.org/blog/archive/2011/Dec-19.html

 It makes me wonder how practical it would be to build upon their work to
 extend the support for C++ D already has.
Ok, THIS is seriously cool, if I had this today for D it would make my life about 10 times simpler. Interoperation with D and .NET is currently only possible via either PInvoke (but no objects) or via COM which is clunky and not cross-platform. This would solve that. And like with this tool it could be done by feeding a tool the proper .DI files. Definitely something worthy of investigation. -- Adam Wilson Project Coordinator The Horizon Project http://www.thehorizonproject.org/
Dec 19 2011
parent reply Jesse Phillips <jessekphillips+D gmail.com> writes:
On Mon, 19 Dec 2011 16:09:05 -0800
"Adam Wilson" <flyboynw gmail.com> wrote:

 COM which is clunky and not cross-platform.
Seems no less cross platform than .Net: http://www.mono-project.com/Mono:Runtime#COM_and_XPCOM hmm... maybe I should be looking at making Juno work with Mono... Probably not too likely.
Dec 19 2011
parent reply mta`chrono <chrono mta-international.net> writes:
I like their approach. They're using gcc-xml to parse c++ files and
generate approtiated wrapper code. maybe we could write a similar tool
for d.
Dec 20 2011
parent bls <bizprac orange.fr> writes:
On 12/20/2011 02:37 PM, mta`chrono wrote:
 I like their approach. They're using gcc-xml to parse c++ files and
 generate approtiated wrapper code. maybe we could write a similar tool
 for d.
http://dsource.org/projects/bcd Project is Not up to date. AFAIK gcc-xml is a dead project. Thanks to David Nadlinger SWIG has now official D1 abd D2 Support. Since SWIG also supports a subset of C++ templates it is IMO the better choice. Bjoern
Dec 22 2011