TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
% R# t; e* n8 @1 d$ Z, ^* k# M; ]# a2 | A {+ G+ @7 ?$ q
在wikipedia上搜了一下reflection C++。
7 s' b8 X) K1 j- @5 `& [* BQt/C++* N# ` e/ M [4 k. [
7 J/ K' k! [# JQt 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. ( o# v' B1 I; x
貌似并不能直接支持,但是可以实现类似效果。, v' Q l5 P0 q: V0 q9 ]+ \. L8 C" i
c++ reflection
& h$ E- r, ?- Q9 q! J% u. F |
|