TA的每日心情 | 慵懒 2019-6-5 13:01 |
|---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
) q4 c1 g% `) p' V
, v+ k: |5 z: F4 |9 Z" Z在wikipedia上搜了一下reflection C++。
+ [2 W, O) i2 p6 A* r/ f6 U) }: wQt/C++
+ p1 U# C3 |3 \
* |' l# S+ g! F8 O; kQt 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.
, }, i, G; U& U" R9 e貌似并不能直接支持,但是可以实现类似效果。
. ~1 i& o- s! h E& e: }( ^c++ reflection) ?- ]8 ?! J2 a4 B$ g/ N, R( Z
|
|