TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子/ t/ v, r0 K6 J- s. f" i1 S! v
: e3 w+ B& y& N4 n# B0 Q; }
在wikipedia上搜了一下reflection C++。
* Q+ w) ?1 T+ ]+ B( `, \- {Qt/C++8 \2 L$ D9 v! t! i% k
& o) g( e7 A# ^4 W# eQt 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. ) q2 D% F/ S+ Z
貌似并不能直接支持,但是可以实现类似效果。
; O. E' W2 H, N" S3 Z5 N. Q, {1 Nc++ reflection U' o" G' m* n. C8 X
|
|