TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子2 I5 y. k2 d0 E& R' z! j
$ x' m3 m7 z4 c8 b6 `1 C在wikipedia上搜了一下reflection C++。
. O+ Z" t' _) t `! S7 c7 S- d, H6 jQt/C++
2 _! c2 R* d z" ]/ o) I
, Y6 R4 L0 W% r- @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.
' T& K8 t h2 w1 Z貌似并不能直接支持,但是可以实现类似效果。
( j, [5 n& e! U) s1 A. \c++ reflection8 u4 u( o5 M4 u
|
|