Type extensions
This paper tackles the problem how to define data types that are hierarchically related one to another. This technique is well known, but rather vaguely defined in object-oriented programming. In contrary to the author's opinion, there are some papers giving a rigorous definition of this technique, i.e., the examples of Cardelli's paper are very similar to Wirth's [\textit{L. Cardelli}, Lect. Notes Comput. Sci. 173, 51-67 (1984; Zbl 0543.68011)]. (A language concept applying this idea to task types, too, was announced by the reviewer [Programming language concept for structuring control software, Computing '85, Amsterdam: North-Holland (1985)]. In the present paper, the definition is based on the record types of Modula-2: If a record type T is given, an extension T' can be defined by adding some record fields. Any object of type T' can be assigned to a variable of type T. Type extensions can favourably be used in applications otherwise requiring variant records or generic packages. The author shows this by studying a linked list the elements of which are of different, but related types. Some additional language constructs round off the concept. The paper is clearly written.
- Operations on records
- Relating multifunctions and predicate transformers through closure operators
- scientific article; zbMATH DE number 1066869
- Type theories and object-oriented programmimg
- scientific article; zbMATH DE number 3864476
- scientific article; zbMATH DE number 814796
- Simple type-theoretic foundations for object-oriented programming
- scientific article; zbMATH DE number 445158
This page was built for publication: Type extensions
Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3815521)