Integrating coercion with subtyping and multiple dispatch

Cited 0 time in webofscience Cited 0 time in scopus
  • Hit : 447
  • Download : 0
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. (C) 2009 Elsevier B.V. All rights reserved.
Publisher
ELSEVIER SCIENCE BV
Issue Date
2010-09
Language
English
Article Type
Article; Proceedings Paper
Citation

SCIENCE OF COMPUTER PROGRAMMING, v.75, pp.787 - 795

ISSN
0167-6423
DOI
10.1016/j.scico.2009.04.005
URI
http://hdl.handle.net/10203/97485
Appears in Collection
CS-Journal Papers(저널논문)
Files in This Item
There are no files associated with this item.

qr_code

  • mendeley

    citeulike


rss_1.0 rss_2.0 atom_1.0