TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子; K% a3 k+ f( h; z7 @! ~' r: h
) u6 V* r0 q, q3 M) f+ X _
在wikipedia上搜了一下reflection C++。2 B; t7 [' P, w2 }( M7 f4 r
Qt/C++
5 @1 m, p7 l* B' `0 J: g
" o: L. h& c9 W1 L) QQt 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.
( z0 {4 i- t+ g) P6 n8 @" v& W貌似并不能直接支持,但是可以实现类似效果。
1 f3 @* Y) I F, h& r! Jc++ reflection# W# D' x0 Q/ ?$ a V v4 ]
|
|