February 22, 2008Import C++ class
Hi, I wanted to know if it would be possible to import a c++ class from D ?
February 22, 2008Re: Import C++ class
Posted in reply to Mosfet
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
Copyright © 1999-2016 by Digital Mars ®, All Rights Reserved