回复 明月回春 的帖子 9 M+ w1 C* e( q0 {8 b. q+ _3 j+ o2 O8 R8 Q+ [( ~: U' S
嘿嘿,探讨一下哈。' X! b* _; W' x4 B9 g
^3 Q3 B( O0 T2 F* @其实Java和C#的设计理念相当不同,早先的后者只是前者的微软抄袭版本,但是后来则完全不同了,微软加进去了很多很奇怪的特性,例如在语言级别提供数据访问能力,而该类功能传统上是由类库或者函数库来提供的。也就是说,微软的设计理念出了问题,它违反了语言的基本设施应该尽可能简练,而附加的功能通过类库或者函数库来提供这一原则。 w. q$ F0 U& W. I9 V
回复 老兵帅客 的帖子 4 r3 H( u- C6 J7 X) t . X* m J' i/ H, `+ Y在wikipedia上搜了一下reflection C++。 , J- @2 B y% s2 o
Qt/C++4 g! O: I5 @) L$ m' n
( c# ]2 G% E$ G. 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.
% X9 ~( ~2 P: [- D- i# k$ n貌似并不能直接支持,但是可以实现类似效果。7 w7 |8 ]. K. `8 x# O c++ reflection% |5 D7 k3 O l4 `5 B: R) F