Object-Oriented Programming A Unified Foundation
Author | : Giuseppe Castagna |
Publisher | : Springer Science & Business Media |
Total Pages | : 372 |
Release | : 2012-12-06 |
ISBN-10 | : 9781461241386 |
ISBN-13 | : 1461241383 |
Rating | : 4/5 (383 Downloads) |
Download or read book Object-Oriented Programming A Unified Foundation written by Giuseppe Castagna and published by Springer Science & Business Media. This book was released on 2012-12-06 with total page 372 pages. Available in PDF, EPUB and Kindle. Book excerpt: by Luea Cardelli Ever since Strachey's work in the 1960's, polymorphism has been classified into the parametric and overloading varieties. Parametric polymorphism has been the subject of extensive study for over two decades. Overloading, on the other hand, has often been considered too ad hoc to deserve much attention even though it has been, in some form, an ingredient of virtually every programming lan guage (much more so than parametric polymorphism). With the introduction of object-oriented languages, and in particular with multiple-dispatch object-oriented languages, overloading has become less of a programming convenience and more of a fundamental feature in need of proper explanation. This book provides a compelling framework for the study of run-time over loading and of its interactions with subtyping and with parametric polymorphism. The book also describes applications to object-oriented programming. This new framework is motivated by the relatively recent spread of programming languages that are entirely based on run-time overloading; this fact probably explains why this subject was not investigated earlier. Once properly understood, overloading reveals itself relevant also to the study of older and more conventional (single dispatch) object-oriented languages, clarifying delicate issues of covariance and contravariance of method types, and of run-time type analysis. In the final chapters, a synthesis is made between parametric and overloading polymorphism.