TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子' W% U4 o+ K# p& \% V1 J& a& p0 I
: H# N S, ]! Q% Q3 Z) `# e# U w
在wikipedia上搜了一下reflection C++。. E1 B' O, u2 n( R2 L" F
Qt/C++
% T/ x& m( j* g, A! g. B% d7 q2 U6 _; u# O" G9 C
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. : s+ {+ j: K L
貌似并不能直接支持,但是可以实现类似效果。
3 e, _7 v- v1 ^" m, i( d. p Kc++ reflection
5 n! v* `3 v& O% z& L |
|