间接对象的概念表示与概念存取
Indirect Object Representation and Access by Means of Concepts
摘要:
本文描述了一种程序设计语言中的间接对象表示和访问(ORA)机制。该机制是基于使用一个新的编程结构,这是被称为概念。概念由一个对象类和一个引用类组成,它们都有自己的字段和方法。对象类是OOP中定义的传统类,其实例通过引用传递。引用类的对象是通过值传递的,并且旨在表示对象。引用类用于描述对象如何通过为其标识符和自定义访问过程提供自定义格式来表示和访问。这种使用概念而不是类的编程方法被称为面向概念的编程。它概括了OOP,它的主要优点是它允许程序员不仅描述目标对象的功能,而且描述在访问对象时在后台执行的中间函数。
英文摘要:
The paper describes a mechanism for indirect object representation and access (ORA) in programming languages. The mechanism is based on using a new programming construct which is referred to as concept. Concept consists of one object class and one reference class both having their fields and methods. The object class is the conventional class as defined in OOP with instances passed by reference. Instances of the reference class are passed by value and are intended to represent objects. The reference classes are used to describe how objects have to be represented and accessed by providing custom format for their identifiers and custom access procedures. Such an approach to programming where concepts are used instead of classes is referred to as concept-oriented programming. It generalizes OOP and its main advantage is that it allows the programmer to describe not only the functionality of target objects but also intermediate functions which are executed behind the scenes as an object is being accessed.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。