Abstract
Values and objects are two different logical concepts. Objects can be created and changed, values, in contrast, exist per se and are immutable. Current object- oriented languages support mainly objects and classes of objects. Classes cannot be used to simulate value types in a satisfactory way.
The paper proposes a language element that supports arbitrary value types and that can be embedded in an object-oriented language. It describes the corresponding keywords, syntax, and consistency checks. Thereby, it gives an impression of the “look and feel” of value types from an application programmer’s perspective.
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
Coplien, J.: Advanced C++: Programming Styles and Idioms. Addison-Wesley, Reading (1992)
Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley, Reading (1996)
Goldberg, A., Robson, D.: Smalltalk-80: The Language. Addison-Wesley, Reading (1989)
Gosling, J., Joy, B., Steele, G.: The Java Language Specification. Addison-Wesley, Reading (1996)
Jensen, K., Wirth, N.: PASCAL User Manual and Report. 2. Springer, Heidelberg (1978)
JWAM - A Framework to Support the Tools & Materials Approach, http://www.jwam.org
JWAM Value-Framework, http://sf.net/projects/jwamdomainvalue
Kernighan, B., Ritchie, D.: The C Programming Language, 2nd edn. Prentice Hall, Inc, Englewood Cliffs (1988)
Kölling, M., Rosenberg, J.: Blue - A Language for Teaching Object-Oriented Programming. In: SIGCSE 1996,SIGSCE Bulletin, Philadelphia, Pennsylvania, vol. 28(1) (1996)
Liberty, J.: Programming C#, 3rd edn. O’Reilly, Sebastopol (2003)
MacLennan, B.J.: Values and Objects in Programming, Languages. ACM SIGPLAN Notices 17(12), 70–79 (1982)
Meyer, B.: Eiffel: the Language. Prentice-Hall, New York (1992)
Odersky, M., et al.: The Scala Language Specification, Version 1.0, Draft (2004), http://scala.epfl.ch/index.html
Pepper, P.: Funktionale Programmierung in OPAL, ML, HASKELL und GOFER. Springer, Berlin (1999)
Stoutamire, D., Omohundro, S.: The Sather 1.1 Specification, ICSI Technical Report TR- 96-012, International Computer Science Institute, Berkley, CA (1996)
Stroustrup, B.: The C++ Programming Language, 3rd edn. Addison-Wesley, Reading (1997)
A Typesafe Enum Facility for the Java Programming Language, http://jcp.org/aboutJava/communityprocess/jsr/tiger/enum.html
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2004 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Ritterbach, B. (2004). Support for Value Types in an Object-Oriented Programming Language. In: Weske, M., Liggesmeyer, P. (eds) Object-Oriented and Internet-Based Technologies. NODe 2004. Lecture Notes in Computer Science, vol 3263. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-30196-7_2
Download citation
DOI: https://doi.org/10.1007/978-3-540-30196-7_2
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-23201-8
Online ISBN: 978-3-540-30196-7
eBook Packages: Springer Book Archive