TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
# Q/ ]6 | ]6 P# _ N4 a
/ U P: @5 t# l- F! z& `; e, o在wikipedia上搜了一下reflection C++。0 Q1 F, n. \" N
Qt/C++7 G: B$ G7 E" { h, n8 h+ [6 v
- l- g' L8 \( k0 M8 R$ g, R y" sQt 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. # L8 E* R8 Z |
貌似并不能直接支持,但是可以实现类似效果。
' s, A4 ]! {- W6 Z" mc++ reflection
. y9 L; d% P4 ~ |
|