TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
, W! E! w) e/ k; ~0 u( [! j! d8 A2 K: a+ P; t1 l/ G/ c
在wikipedia上搜了一下reflection C++。
/ e. u# P: K/ F7 Q* W% l; @' t+ \Qt/C++
% o+ O# n& p1 o; \; } [
7 }% Y5 l, I6 v5 f: e' ZQt 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.
# m% O3 {9 y2 I9 z" b貌似并不能直接支持,但是可以实现类似效果。) w& i7 w/ N. W& i9 H, k! Y5 U! w1 A
c++ reflection
" l" G( }+ [1 m* ` |
|