26.09.2011, 20:06, "Oswald Buddenhagen" <[email protected]>: > semi-OT: > > On Sat, Sep 24, 2011 at 02:49:50PM +0200, ext Peter Kuemmel wrote: > >> Because of this I propose that in Qt5 the moc mechanism >> should be expanded by the generation of public headers. > > if one takes it further and allows pre-processing the actual source > code, one could solve the fragile base class problem within qt scope. > while d pointers solve it for data, virtual functions and later added > reimplementations pose a very real problem for qt's binary > compatibility (especially non-qobject classes). > > fwiw, in java this problem is solved by the compiler (gjc has a mode to > produce such code), but it is not generically solvable for c++ due to > constraints of the language. it would be solvable for qt due to language > limitations we can impose on classes for which we have strong binary > compatibility requirements. of course, one could do it in the compiler > by adding an appropriate language extension, too.
This could be implemented within Clang plugin (or fork), but depending on it inside Qt will cause lock-in to particular compiler which may not be appropriate for many usages... -- Regards, Konstantin _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
