کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
435655 1441734 2010 9 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Integrating coercion with subtyping and multiple dispatch
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Integrating coercion with subtyping and multiple dispatch
چکیده انگلیسی

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.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Science of Computer Programming - Volume 75, Issue 9, 1 September 2010, Pages 787-795