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.

just thinking aloud ...
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to