View mode: basic / threaded / horizontal-split · Log in · Help
February 22, 2008
Import C++ class
Hi,

I wanted to know if it would be possible to import a c++ class from D ?
February 22, 2008
Re: Import C++ class
Mosfet wrote:
> Hi,
> 
> I wanted to know if it would be possible to import a c++ class from D ?

There's some limited support for that in D 2.0, you need at least dmd 
2.010.  But I don't think most libraries support D 2.0 yet.  And the C++ 
class would probably have to be altered for using with D, because of the 
limitations.

The common way of getting access to C++ code is to write a C wrapper for 
it.  Then you can still use D 1.0 too.

http://www.digitalmars.com/d/2.0/cpp_interface.html
Top | Discussion index | About this forum | D home