
10 Feb
2012
10 Feb
'12
5:12 p.m.
On 02/10/2012 03:14 PM, Dominique Devienne wrote:
Well, just add introspection and reflection to C++ (possibly on-demand instead of an all types and method for example), and the need for MOC pretty much disappears. MOC is not just used for signal/slot, but for introspectable properties, methods (and thus easy runtime integration to JavaScript for example), declaring safe enums, and other stuff still.
Q_CLASSINFO, Q_PROPERTY, Q_ENUMS can all be implemented as regular C++ macros. They don't depend on introspection at all.