TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子) T Y' z4 A W% M5 `
5 a1 r8 R& d1 `, l; i b1 s4 q4 t* u
在wikipedia上搜了一下reflection C++。
9 _( E) b9 R/ C1 [1 {) r XQt/C++
) V* Q# ]# |3 B& i6 n
; p, t+ b/ l2 Z/ `( fQt 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.
: `) n9 h( U6 m$ f3 R' d4 X貌似并不能直接支持,但是可以实现类似效果。6 x9 t$ i6 N, p6 h( j4 ?) D
c++ reflection2 f$ X, ^( V5 y6 ?
|
|