TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
9 B8 O* s5 \: k& c+ G/ ?, J* v- O
' H5 q# P& Q) ^/ ~5 P在wikipedia上搜了一下reflection C++。/ G( ?2 g9 f! [+ D2 X N: ]3 x
Qt/C++% R( z& ?( l- {1 N
" Y/ A6 a t! _8 O' w7 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. 5 [$ }3 C* F, `* Z3 r& S, Y/ X
貌似并不能直接支持,但是可以实现类似效果。
6 l" f. {9 _' I2 O' B2 `8 U/ dc++ reflection
) v _$ \ K3 j: p! q5 G |
|