回复 老兵帅客 的帖子 1 ^6 Q& f2 ]: a# y2 q! a' D" q2 c, w9 d7 S+ T/ }
在wikipedia上搜了一下reflection C++。$ H. l2 u" d5 P" y& r
Qt/C++( K( J" g+ J* a' } r( m
8 v: U: o+ X4 m3 K
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.
+ p2 x( E2 k- z* F
貌似并不能直接支持,但是可以实现类似效果。 % c2 m' J, a9 c) h9 z4 q( Nc++ reflection# t7 {+ P8 ~0 y5 M) r0 b