Abstract
Traditional object-oriented programming languages do not support user-level object structure definition, so it is impossible to treat external or low-level data structures (like an integer, an array and a pointer) as actual objects. To overcome this, we apply Predicate Dispatching to arbitrary data of C to create CCC. CCC is a simple language extension of C and features user-level object structure definitions, conditional-style dispatching, multi-methods, and class scoped macros.
Keywords
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsPreview
Unable to display preview. Download preview PDF.
References
Chambers, C.: Object-Oriented Multi-Methods in Cecil, Proc.ECOOP’92.
Chambers, C.: Predicate Classes, Proc.ECOOP’93.
Ernst, M., Kaplan, C., and Chambers, C.: Predicate Dispatching: A Unified Theory of Dispatch, ECOOP’98.
Harada, Y., Yamazaki, K.: Condition Classes: Polymorphism and Inheritance without Data Abstraction, PRO, IPSJ, Jan. 1996 (In Japanese).
Steele, G.L.: Common Lisp: The Language, Digital Press, Bedford MA, 1990. Second edition.
Goldberg, A. and Robson, D. Smalltalk-80: The Language and Its Implementation. Addison-Wesley, Reading, MA, 1983.
Ellis, M.A., Stroustrup, B.: The Annotated C++ Reference Manual., Addison-Wesley, Reading, MA, 1990.
Queinnec, C., Cointe, P.: An Open-Ended Data Representation Model for EuLisp, Proc. 1988 ACM Conference on LISP and Functional Programming.
Adams, N., Curtis, P., Spreitzer, M.: "First-class Data-type Representation in SchemeXerox, Proc. 1993 ACM Conference on Programming Language Design.
Hollander, Y., Morley, M., Noy, A.: The e Language: A Fresh Separation of Concerns, 38th International Conference on Technology of Object-Oriented Languages: TOOLS-38 Europe 2001, Ed. Wolfgang Pree.
Harada, Y.: CCC web page, http://www.brl.ntt.co.jp/people/hara/ccc/.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2001 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Harada, Y., Yamazaki, K., Potter, R. (2001). CCC: User-Defined Object Structure in C. In: Knudsen, J.L. (eds) ECOOP 2001 — Object-Oriented Programming. ECOOP 2001. Lecture Notes in Computer Science, vol 2072. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45337-7_7
Download citation
DOI: https://doi.org/10.1007/3-540-45337-7_7
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-42206-8
Online ISBN: 978-3-540-45337-6
eBook Packages: Springer Book Archive