DocumentCode
3370088
Title
How can covariance in pragmatical class methods be made statically type-safe?
Author
Schmolitzky, Axel ; Evered, Mark ; Keedy, J.L. ; Menger, Gisela
Author_Institution
Sch. of Comput. Sci. & Software Eng., Monash Univ., Clayton, Vic., Australia
fYear
1999
fDate
1999
Firstpage
200
Lastpage
209
Abstract
Binary class methods are often more suitable for modelling binary operations than binary instance methods. Allowing covariant parameter type adaptations in class methods can make them even more attractive. We discuss the implications of covariant class methods on type safety. We discuss two examples, one type-safe at run-time and the other not, and formulate type rules that make it possible to identify the difference at compile-time
Keywords
object-oriented programming; program compilers; type theory; binary class methods; binary instance methods; binary operations; compile-time; covariant parameter type adaptations; pragmatical class methods; statically type-safe covariance; type rules; Australia; Computer science; Encapsulation; Java; Object oriented modeling; Object oriented programming; Runtime; Safety; Software engineering;
fLanguage
English
Publisher
ieee
Conference_Titel
Technology of Object-Oriented Languages and Systems, 1999. TOOLS 32. Proceedings
Conference_Location
Melbourne, Vic.
Print_ISBN
0-7695-0462-0
Type
conf
DOI
10.1109/TOOLS.1999.809426
Filename
809426
Link To Document