TA的每日心情 | 慵懒 2019-6-5 13:01 |
---|
签到天数: 115 天 [LV.6]出窍
|
回复 老兵帅客 的帖子
1 j! U: w q/ M
) h# @# z0 V4 t1 x8 K4 O D在wikipedia上搜了一下reflection C++。
/ \* d0 u1 t1 @4 v0 JQt/C++
( _2 r$ [4 `0 Z4 S
`8 @. s" Z& p+ w; r! N8 BQt 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. , `# k8 r- u5 Z; G
貌似并不能直接支持,但是可以实现类似效果。
8 u w' Z! h, A, e# b6 e1 V1 o( @c++ reflection# M1 A7 @- t$ M G+ J, H+ B
|
|