TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子7 v4 X) I! r5 h. h
: f! h& S5 H, U8 a在wikipedia上搜了一下reflection C++。
* g8 ?# L5 j0 t. ~& Q8 u. ^8 {1 I5 HQt/C++
/ X* k* Y0 F9 f% g/ u T$ N+ n2 z/ k$ n, g- A) I* s
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.
' B3 R# N, t# R6 n貌似并不能直接支持,但是可以实现类似效果。
0 t# G# u# i' qc++ reflection
9 d0 k/ b6 Y \2 s. k6 p2 p( L |
|