What would be the consequence of implementing interfaces as fat pointers ?

Daniel Murphy yebbliesnospam at gmail.com
Tue Apr 1 05:42:21 PDT 2014


"Michel Fortin"  wrote in message news:lhe9v8$28lp$1 at digitalmars.com...

> You don't need it as a 1st-class D concept though. Just implement the 
> basics of the C++ object model in D, similar to what I did for 
> Objective-C, and let people define their own extern(C++) classes with no 
> base class. Bonus if it's binary compatible with the equivalent C++ class. 
> Hasn't someone done that already?

Mostly, but it will put out a vtbl even for classes with no virtual member 
functions. 



More information about the Digitalmars-d mailing list