www.digitalmars.com         C & C++   DMDScript  

D - class export

reply Jester <jestersera ncfreak.com> writes:
Can I export D class like C++ class?

-- 
- Jester
Feb 17 2004
parent "Matthew" <matthew.hat stlsoft.dot.org> writes:
 Can I export D class like C++ class?

Strictly, yes, in so far as you can export, in D, a function that creates an instance of a given interface just as you can in C++. However, I suspect that you mean can you export a D class to be used in C++. That is not possible, though it can implement an interface that can be used directly in C++
Feb 21 2004