【24h】

Reuse and Combination with Package Templates

机译:重复使用和与包模板结合

获取原文
获取原文并翻译 | 示例

摘要

Package Templates (PT) is a mechanism for writing modules meant for reuse, where each module (template) consists of a collection of classes. Such a template must be instantiated in a program (at compile time) to form a set of ordinary classes, and during instantiation the classes may be adjusted with renaming and additional attributes. Package templates can be instantiated multiple times in the same program, each time with different adjustments and each time resulting in a fully independent set of classes. During instantiations, classes from two or more templates may be combined so that they get a new shared type with the properties from all the classes. This paper presents and discusses two proposed extensions to PT. The first has to do with the fact that PT naturally gets two variants of the "super" concept, where one is for ordinary superclasses, and the other is for the additions made to classes during instantiation. The second extension has to do with allowing templates to instantiate templates that are later to be specified.
机译:包模板(PT)是一种用于编写要重用的模块的机制,其中每个模块(模板)都由类的集合组成。必须在程序中(在编译时)实例化这样的模板以形成一组普通类,并且在实例化期间,可以使用重命名和其他属性来调整这些类。包模板可以在同一程序中多次实例化,每次都进行不同的调整,每次都生成一组完全独立的类。在实例化过程中,可以合并来自两个或更多模板的类,以便它们使用来自所有类的属性获得新的共享类型。本文介绍并讨论了PT的两个拟议扩展。第一个与以下事实有关:PT自然会得到“ super”概念的两个变体,其中一个用于普通超类,另一个用于实例化期间对类的添加。第二个扩展与允许模板实例化稍后要指定的模板有关。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号