TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
, A) p3 m& p5 K: w2 ^& D: G3 p/ T* y8 B$ i9 B
在wikipedia上搜了一下reflection C++。
# }7 O, d1 t6 e- z, [Qt/C++2 t, X' J5 M# X' K! [3 T9 p
0 \% u8 k% T7 A/ S+ o) R7 e* @
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. 8 \' X2 K5 w5 U+ w3 J9 i6 h
貌似并不能直接支持,但是可以实现类似效果。
7 M( W& Z! ^# a- ^2 E- Q/ k: Sc++ reflection
+ j1 L% ]" ^4 `0 T& X/ E |
|