% ~/ A' n; f+ R7 p r2 t在wikipedia上搜了一下reflection C++。 P& T1 C+ `% P3 ]& _
Qt/C++ \; X1 a8 i6 G. y& _3 h* o) Q2 _1 i0 Q' V. \1 Y5 X
Qt 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.
- G1 w. M( Q" s0 y6 l9 T貌似并不能直接支持,但是可以实现类似效果。0 x( Q X7 {1 X/ Q, ]. Q# k c++ reflection1 h Q/ t2 X6 H O4 f( `