回复 老兵帅客 的帖子0 p$ o _& D( N9 O# ]% M
1 I7 `& C1 D* x
在wikipedia上搜了一下reflection C++。 % C& H- l5 Z) r! F) i8 W
Qt/C++& Y* w5 N& o5 z" m4 i
$ M* Q3 y$ I& X/ R/ p9 {1 h0 ~; T
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.
1 n' p3 M* I' z6 x2 f. c
貌似并不能直接支持,但是可以实现类似效果。 x6 Q" ?. y* v& k* @2 a0 m6 X9 F$ Ic++ reflection! M) i u2 J1 r; g- a