TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子 B! l8 o( P2 h+ C& K
, C" ~ S x+ j2 w- _
在wikipedia上搜了一下reflection C++。7 J1 _) Y; ?+ k6 Y
Qt/C++
$ d4 U3 M. }" f' u1 \' h, q" w3 c" E$ ]9 J
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.
$ x" i" x7 e* G$ v, Z貌似并不能直接支持,但是可以实现类似效果。( n6 Q a9 j: c9 @- F" m
c++ reflection& ]* E# X5 Z3 d. Y8 l# k
|
|