TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子5 _6 M: n/ O1 R4 n4 Q, g& l
3 M0 J8 U: i6 h在wikipedia上搜了一下reflection C++。
0 R, o9 b- e, O1 @, zQt/C++$ y2 x& @) O) [3 |
2 y, Y5 d8 h- K1 x
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. & O+ [1 R1 W+ N5 ] S8 j5 Y
貌似并不能直接支持,但是可以实现类似效果。* X+ b$ c4 e1 ]8 L N. Z+ `
c++ reflection
: ]9 k* l8 U: c0 e1 G8 | |
|