TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子1 t! ]2 O7 \# x* I3 |# z
( i2 O, Q& n, L0 D在wikipedia上搜了一下reflection C++。
2 U. {1 q; r" E% S# u WQt/C++ W" `6 F, ~5 d9 m0 M1 A9 I
. a5 `6 U c; V4 mQt 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. $ ?$ g& s1 Y3 l/ G! l" {7 }- e; F
貌似并不能直接支持,但是可以实现类似效果。1 {$ A$ T0 g. b8 _3 F' _' T* ?
c++ reflection
6 v/ W' F& R' X" i |
|