TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
4 v# O' ?' G# d8 p& i H9 t7 h* J7 `7 ^! `0 H+ k' l, F
在wikipedia上搜了一下reflection C++。
( s: [0 b) @/ o" y+ K' mQt/C++
0 x" ]0 O. D( D/ a
8 H) J& I2 `7 g, A) I7 UQt 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. ! z/ V/ ?, ^ r c. ^! x, [) i8 a
貌似并不能直接支持,但是可以实现类似效果。! i$ Y1 e, E& F# g _5 g# L& ^
c++ reflection& Y* @, M; y( ]6 Q/ q
|
|