回复 老兵帅客 的帖子 2 n8 d, n+ q6 p - j7 @4 T# Z: N在wikipedia上搜了一下reflection C++。8 ?4 D. L+ Z9 v# J3 s
Qt/C++4 Q0 r9 [' _# y3 M; A9 K" O
& f1 I4 f* G( }. b% z1 k+ k+ Y9 P
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.
% ?- Y) @+ B( E8 p. g `. _8 v貌似并不能直接支持,但是可以实现类似效果。! @- n1 P5 o' [9 p c++ reflection7 h" W. E# Y! @) T6 b# @# u