9 I2 ]0 Q! j* {, x7 [* I, A在wikipedia上搜了一下reflection C++。 0 ?6 e: Y$ Q* `2 I
Qt/C++9 T2 {/ i& K ?- M! s
7 P& p2 _1 W& E3 z
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.
4 S2 g% n0 g! @) o I+ x4 |1 D5 ^
貌似并不能直接支持,但是可以实现类似效果。 0 h c) e+ `7 o5 Fc++ reflection / s# ?) D1 s: U4 n9 E