TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
5 w8 i8 I$ N, K( B. N4 h, K' Q5 M7 q, b/ k/ ] r
在wikipedia上搜了一下reflection C++。+ `+ ^) @! o0 W% k7 Q, f
Qt/C++1 T* }4 n% _ F, q
( a+ z# X( _9 K. y0 y
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.
$ a: {. F8 x4 Q4 ?- n; i7 Q1 }, y貌似并不能直接支持,但是可以实现类似效果。
, p, X* i, s& h' Yc++ reflection
3 l" N5 M4 W7 e9 l& y |
|