TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
2 F' J0 T/ L, `1 a
- F6 f+ c4 N' s' T6 j# i在wikipedia上搜了一下reflection C++。
4 d- P2 `, @, h# P3 ZQt/C++8 C5 h( `9 ]# \8 l# |' m
- o* R& x1 l5 O; b0 rQt 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.
, F, h, C$ p5 n' ]9 \/ e1 c! A貌似并不能直接支持,但是可以实现类似效果。
0 g8 ?$ ?1 r% [% Ec++ reflection4 G# q A$ r2 I% k
|
|