On Tuesday, 7 February 2017 at 10:15:09 UTC, Atila Neves wrote:
I can declare a C++ struct like so:
extern(C++, mynamespace)
struct Foo {
//...
}
But... I don't want to repeat the initialisation code for that
struct's default constructor. I can't declare one in D because
D doesn't allow default constructors for structs. What's my way
out? Thanks,
Atila
I'm afraid there's no way out. I summarized some of my C++
interop findings incl. default constructor here:
http://forum.dlang.org/thread/nqxsdehlydizatopr...@forum.dlang.org