TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
s3 d7 W3 I9 o$ j+ V6 `- [! m& j* s& L9 |, p
在wikipedia上搜了一下reflection C++。
' s* P; U3 y, Z& s& rQt/C++
: R+ t0 m* f. F* D# @' A* J0 R
1 r; F. p/ v5 H/ w3 g8 V8 \, a7 ]0 AQt 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. ) Y* e) [3 I9 V" B5 n5 S- N% T
貌似并不能直接支持,但是可以实现类似效果。" h! h6 s, S' W/ a/ O+ c
c++ reflection8 I: f6 D- F0 q: v4 q$ m$ [
|
|