计算机科学 > 程序设计语言
[提交于 2004年1月27日]
标题:A system for reflection in C++
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:Object-oriented programming languages such as Java and Objective C have become popular for implementing agent-based and other object-based simulations since objects in those languages can {\em reflect} (i.e. make runtime queries of an object's structure). This allows, for example, a fairly trivial {\em serialisation} routine (conversion of an object into a binary representation that can be stored or passed over a network) to be written. However C++ does not offer this ability, as type information is thrown away at compile time. Yet C++ is often a preferred development environment, whether for performance reasons or for its expressive features such as operator overloading. In this paper, we present the {\em Classdesc} system which brings many of the benefits of object reflection to C++.
提交历史
来自:Russell K. Standish[v1] 2004年1月27日 星期二 03:29:16 UTC