回复 老兵帅客 的帖子# c. s! X! t0 @4 w7 A
& q9 i* v: L! f! A. B
在wikipedia上搜了一下reflection C++。 + c6 `1 ^$ ^8 w
Qt/C++4 x& G# K5 `% q8 j
: p- o0 ]+ X4 S4 [/ Z+ WQt 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.
8 z i+ a& k& v: D, u. n貌似并不能直接支持,但是可以实现类似效果。 & U! {" b; _! D- H8 I$ I8 ~c++ reflection ) Q+ p$ p& N, g2 W