TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
' Q) A- f; i n, @ W
. p+ ?- E1 e4 ]- L( v7 i在wikipedia上搜了一下reflection C++。
% H) s$ E8 V* OQt/C++' k R& Q; w0 i2 b6 l
, R% ~; f: g* }: r" G z4 ]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.
2 _& m% _1 L, w, v% K0 [. t貌似并不能直接支持,但是可以实现类似效果。
G3 m N' G bc++ reflection
3 s: V' P! `1 A |
|