回复 老兵帅客 的帖子 ' k, C- `, D# ` 3 g/ t2 H$ X1 `( X) x( k在wikipedia上搜了一下reflection C++。: G' B. t( F: z! P. o+ @8 N. K* l
Qt/C++ $ W8 F$ F5 C* e - p6 }& D3 d- eQt 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 d9 P, q% l: ?) U' Z7 E* G2 [
貌似并不能直接支持,但是可以实现类似效果。 i! f1 [2 ]% G$ w& x$ a" @ c++ reflection # T( {4 ^( H" w