TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
- H- L0 i! O A$ u' {: x' ~
7 d8 U' w. k/ i: N8 i6 {- W* A1 I在wikipedia上搜了一下reflection C++。
! T" j$ g& C* `+ s, K2 }) VQt/C++
0 V w: p, c$ M& M8 _4 Z/ h4 s$ P9 u& d; B# |( M
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. 5 d; W, o% ~9 w& R# N" k! S) S
貌似并不能直接支持,但是可以实现类似效果。
2 U, o6 ~" a6 V I4 Q7 N# ~9 R9 Mc++ reflection
) k7 o0 G: c% D7 w8 ]6 d |
|