TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
, X, d d7 n: L L! J' w, j9 w- _4 j1 R# ^, T3 A9 h1 f/ ?4 g
在wikipedia上搜了一下reflection C++。3 H0 V* M' I* h ~& F
Qt/C++9 _2 k' d8 N) D U4 {
6 B- x( e9 y2 k# v8 g& Y7 ~" f5 kQt 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. ; \2 a0 n2 A/ A H/ U, ^! x
貌似并不能直接支持,但是可以实现类似效果。
/ q. L# W( ` C9 Nc++ reflection% G/ b+ T, l) r; T- p) V
|
|