TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
' ^, W7 r5 V" K
$ t+ i/ U- o4 o, J+ \在wikipedia上搜了一下reflection C++。
& H7 m+ a* e7 O" K: e" N: s" C) OQt/C++
7 ^1 \+ Y2 P$ \6 [! w5 i& X6 g, [) G p) Z' T# P, r: o* x6 U* ?
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.
$ d6 g, n6 c# @貌似并不能直接支持,但是可以实现类似效果。( Q( P2 I# L5 E& y y" U! Z
c++ reflection& l$ J; g% d, T' B m1 d
|
|