8 s: ^( N. a( a- p) }在wikipedia上搜了一下reflection C++。8 A( l; z3 |/ s2 ]7 P6 N5 m
Qt/C++8 E6 l; ^3 A% H4 e
* R2 _+ f' l' M8 D. A! x- YQt framework extends C++ with its meta-language and provides reflection ability of member/method reference and query by name for Qt objects with QMetaObject class, which contains meta-information about the Qt objects.
Objective-C is a reflective, object-oriented programming language that adds Smalltalk-style messaging to the C programming language.
) s2 B2 q( ^ c( f# S貌似并不能直接支持,但是可以实现类似效果。2 x+ w; ?" r' ~9 T f! |7 a; x c++ reflection; V: b5 o9 C$ ]