回复 老兵帅客 的帖子3 K" x# f2 W. W( n' G
2 e1 i4 z- }- s( k0 H8 @" O: Z
在wikipedia上搜了一下reflection C++。; K# E& \ l, V& C6 W0 @
Qt/C++ % `) i8 [2 M( d7 i* {' J r6 u4 I0 ?' i$ W8 ^ N. \
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.
^3 e- l3 D2 R# O7 }1 z
貌似并不能直接支持,但是可以实现类似效果。/ u: ?' j* ?% r$ t& [ c++ reflection * l+ c' ]4 L! @