TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
0 a2 w- {% b! G. p: b
# o& A4 R, Q: K+ X! ~在wikipedia上搜了一下reflection C++。
$ k+ m- V( m/ q/ ~3 H5 d, {Qt/C++3 f8 L, C) Q. b/ Z( k
* N) g3 j0 }# I: D- ]7 r1 I
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. $ I" Q5 f P! U6 o, i4 Q
貌似并不能直接支持,但是可以实现类似效果。
9 S0 H3 \, m; k$ a. Z) x8 B. rc++ reflection
% Q/ j! J' L% T" A* e/ B |
|