First up, here’s a big disclaimer if the title didn’t warn you enough: this is a hack. It’s just a
proof-of-concept for getting
extern(C++) classes working with betterC D. Also, DMD keeps getting
better quickly, so if you’re reading this post when something more recent than version 2.080 is out, this hack is
probably obsolete. Hopefully you’ll find this post interesting anyway if you’re either
- Interested in all things
- Curious about how stuff like classes work in D.
If you haven’t read my earlier post about how polymorphism and inheritance work yet, I recommend doing that first.