Modular Multiple Dispatch with Multiple Inheritance

被引:0
|
作者
Allen, Eric [1 ]
Hallett, J. J. [1 ]
Luchangco, Victor [1 ]
Ryu, Sukyoung [1 ]
Steele, Guy L., Jr. [1 ]
机构
[1] Sun Microsyst Inc, Santa Clara, CA 95054 USA
关键词
overloading; multiple dispatch; multiple inheritance; modularity;
D O I
暂无
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Overloaded functions and methods with multiple dispatch are useful for extending the functionality of existing classes in an object-oriented language. However, such functions introduce the possibility of ambiguous calls that cannot be resolved at run time, and modular static checking that such ambiguity does not exist has proved elusive in the presence of multiple implementation inheritance. We present a core language for defining overloaded functions and methods that supports multiple dispatch and multiple inheritance, together with a set of restrictions on these definitions that can be statically and modularly checked. We have proved that these restrictions guarantee that no undefined nor ambiguous calls occur at run time, while still permitting various kinds of overloading.
引用
收藏
页码:1117 / 1121
页数:5
相关论文
共 50 条
  • [31] IS MULTIPLE INHERITANCE ESSENTIAL TO OOP
    SHAN, YP
    CARGILL, T
    COX, B
    COOK, W
    LOOMIS, M
    SNYDER, A
    [J]. SIGPLAN NOTICES, 1993, 28 (10): : 360 - 363
  • [32] A CORRECT EXAMPLE OF MULTIPLE INHERITANCE
    ERIKSSON, M
    [J]. SIGPLAN NOTICES, 1990, 25 (07): : 7 - 10
  • [33] INHERITANCE OF MULTIPLE BIRTHS IN CATTLE
    SYRSTAD, O
    [J]. LIVESTOCK PRODUCTION SCIENCE, 1984, 11 (04): : 373 - 380
  • [34] INHERITANCE OF MULTIPLE HEMOGLOBINS IN PEROMYSCUS
    FOREMAN, CW
    [J]. GENETICS, 1966, 54 (04) : 1007 - &
  • [35] A CATEGORICAL SEMANTICS OF MULTIPLE INHERITANCE
    LIN, HM
    PANG, MZ
    [J]. CHINESE SCIENCE BULLETIN, 1990, 35 (01): : 77 - 80
  • [36] Metamodeling semantics of multiple inheritance
    Ducournau, Roland
    Privat, Jean
    [J]. SCIENCE OF COMPUTER PROGRAMMING, 2011, 76 (07) : 555 - 586
  • [37] On multiple inheritance in Java']Java
    Bettini, L
    Loreti, M
    Venneri, B
    [J]. TECHNOLOGY OF OBJECT-ORIENTED LANGUAGES, SYSTEMS AND ARCHITECTURES, 2003, 732 : 1 - 15
  • [38] MULTIPLE INHERITANCE SYSTEMS WITH EXCEPTIONS
    RYCHLIK, P
    [J]. ARTIFICIAL INTELLIGENCE REVIEW, 1989, 3 (2-3) : 159 - 176
  • [39] Incremental Reasoning for Multiple Inheritance
    Dovland, Johan
    Johnsen, Einar Broch
    Owe, Olaf
    Steffen, Martin
    [J]. INTEGRATED FORMAL METHODS, PROCEEDINGS, 2009, 5423 : 215 - 230
  • [40] Separation Logic for Multiple Inheritance
    Luo, Chenguang
    Qin, Shengchao
    [J]. ELECTRONIC NOTES IN THEORETICAL COMPUTER SCIENCE, 2008, 212 : 27 - 40