Title of article :
Integrating coercion with subtyping and multiple dispatch
Author/Authors :
J.J. Hallett، نويسنده , , Victor Luchangco، نويسنده , , Sukyoung Ryu، نويسنده , , Guy L. Steele Jr. ، نويسنده ,
Issue Information :
ماهنامه با شماره پیاپی سال 2010
Pages :
9
From page :
787
To page :
795
Abstract :
Coercion can greatly improve the readability of programs, especially in arithmetic expressions. However, coercion interacts with other features of programming languages, particularly subtyping and overloaded functions and operators, in ways that can produce surprising behavior. We study examples of such surprising behavior in existing languages. This study informs the design of the coercion mechanism of Fortress, an object-oriented language with multiple dynamic dispatch, multiple inheritance and user-defined coercion. We describe this design and show how its restrictions on overloaded declarations prevent ambiguous calls due to coercion.
Keywords :
coercion , subtyping , Overloading , Multiple dispatch
Journal title :
Science of Computer Programming
Serial Year :
2010
Journal title :
Science of Computer Programming
Record number :
1080138
Link To Document :
بازگشت