TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子2 [3 D5 I2 F/ c9 J
% @, U0 @1 j; E$ |/ N" n. X
在wikipedia上搜了一下reflection C++。
1 g/ x' w4 D- H& eQt/C++/ R" A# e$ b1 Q, ~& f2 S) p/ ^+ j
8 k, q& F+ S% A3 I8 Z! a0 d
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. : v! h* S+ e, c i/ m
貌似并不能直接支持,但是可以实现类似效果。+ |, z% o# {$ {7 |3 t
c++ reflection
7 E% r0 @3 y; l @8 S0 p9 S |
|