回复 老兵帅客 的帖子 6 |* d+ b( X4 e" h% g2 i! O+ Z: g. B
在wikipedia上搜了一下reflection C++。 7 i3 ~; N0 u4 O7 e" h/ z
Qt/C++- F7 A% Q+ E0 Q& W
; f# {9 l) j4 T$ O+ FQt 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.
8 b7 t& [ F, x6 e+ N' ^貌似并不能直接支持,但是可以实现类似效果。6 s2 ]; B+ H' k8 R2 Q c++ reflection 2 y |# A0 N8 U1 ], K, @. }