On 2009-02-05 08:51:39 -0500, grauzone <n...@example.net> said:

Summary of the upcoming discussion: "use interfaces!"

You should preemptively list reasons, why this is not enough.

Well, you can't create a subclass and override functions if only the interface is exposed. In fact, exposing only interface offers little more than exposing static functions wrapping calls to member functions. And with static functions you can insert one in the middle with no side-effect.

Sure, there's always a way to make things work with interfaces, just like you can do everything in C if you want, or you can force everyone to recompile each time they update their libs. In all cases, it's not very impressive that an object-oriented ABI is so fragile in an object-oriented language.

--
Michel Fortin
michel.for...@michelf.com
http://michelf.com/

Reply via email to