| Classes: an abstract data type facility for the C language |
| Full text |
Pdf
(837 KB)
|
| Source
|
ACM SIGPLAN Notices
archive
Volume 17 , Issue 1 (January 1982)
table of contents
Pages: 42 - 51
Year of Publication: 1982
ISSN:0362-1340
|
|
Author
|
|
| Publisher |
|
| Bibliometrics |
Downloads (6 Weeks): 1, Downloads (12 Months): 17, Citation Count: 12
|
|
|
ABSTRACT
Language constructs for definition and use of abstract data types ease the design and maintenance of large programs. This paper describes the C class concept, an extension to the C language providing such constructs. A class is defined using standard C data types and functions, and it can itself be used as a building block for new classes. A class provides a way of restricting access to a data structure to a specific set of functions associated with it, without incurring significant overheads at compile time or at run time.The C class concept is introduced by small examples of its use, and familiarity with the C language [2] is assumed. Appendix A is a complete small C program using classes.Classes have been in use for more than a year on a dozen PDP11 and VAX UNIX systems [1], and they are currently used for a diverse set of projects on more than 30 systems. Classes are currently implemented by an intermediate pass of the cc compiler, called the class pre-processor, which is invoked when the directive #class is found in a C source file. The class pre-processor is easily ported to a system with a version of the portable C compiler. A Motorola68000 version is in use.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Unix Programmer's Manual Seventh Edition, January 1979 Bell Telephone Laboratories
|
| |
2
|
|
| |
3
|
Stroustrup, Bjarne A Set of C Classes for Co-Routine Style Programming Computer Science Technical Report CSTR-90 Bell Telephone Laboratories, December 1980
|
|