TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
, L* n+ k1 {& N7 a8 {3 V+ o/ _5 W. r2 Z4 ^2 M' \9 M( V
在wikipedia上搜了一下reflection C++。
3 j. f0 s# @6 l6 C* u, Y0 cQt/C++8 A( A& T7 l7 C: h/ h' V
g/ h! A% k9 u
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.
6 A( a. T+ U% r+ }; K$ T0 b( X貌似并不能直接支持,但是可以实现类似效果。
* D8 m- l+ r/ b. c+ y# ]c++ reflection
4 L& H! B, M$ z: {1 W |
|