回复 老兵帅客 的帖子 7 V0 N( U: |; C w1 W" Q, {) e& R4 I/ i9 `' Y# D5 [
在wikipedia上搜了一下reflection C++。1 l1 \9 z, ]' [! |, c
Qt/C++ 0 F& J. i8 Z4 J% V * f3 g3 {0 i) N8 C A: b( W% gQt 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.
h% i# j7 A3 {貌似并不能直接支持,但是可以实现类似效果。7 B+ X. p+ t1 u9 N0 _3 L) K4 Z; t c++ reflection 6 w& e5 ~2 T+ f