TYPE INFERENCE OF SELF - ANALYSIS OF OBJECTS WITH DYNAMIC AND MULTIPLE INHERITANCE

被引:11
|
作者
AGESEN, O [1 ]
PALSBERG, J [1 ]
SCHWARTZBACH, MI [1 ]
机构
[1] AARHUS UNIV, DEPT COMP SCI, DK-8000 AARHUS C, DENMARK
来源
SOFTWARE-PRACTICE & EXPERIENCE | 1995年 / 25卷 / 09期
关键词
LANGUAGES AND THEIR IMPLEMENTATION; TOOLS AND ENVIRONMENTS;
D O I
10.1002/spe.4380250903
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We have designed and implemented a type inference algorithm for the SELF language, The algorithm tan guarantee the safety and disambiguity of message sends, and provide useful information for browsers and optimizing compilers, SELF features objects with dynamic inheritance, This construct has until now been considered incompatible with type inference because it allows the inheritance graph to change dynamically. Our algorithm handles this by deriving and solving type constraints that simultaneously define supersets of both the possible values of expressions and of,the possible inheritance graphs, The apparent circularity is resolved by computing a global fixed-point, in polynomial time, The algorithm has been implemented and can successfully handle the SELF benchmark programs, which exist in the 'standard SELF world' of more than 40,000 lines of code.
引用
收藏
页码:975 / 995
页数:21
相关论文
共 50 条
  • [1] TYPE INFERENCE FOR RECORD CONCATENATION AND MULTIPLE INHERITANCE
    WAND, M
    [J]. INFORMATION AND COMPUTATION, 1991, 93 (01) : 1 - 15
  • [2] TYPE INFERENCE FOR RECORD CONCATENATION AND MULTIPLE INHERITANCE
    WAND, M
    [J]. FOURTH ANNUAL SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE, 1989, : 92 - 97
  • [3] A dynamic binding strategy for multiple inheritance and asynchronously communicating objects
    Johnsen, EB
    Owe, O
    [J]. FORMAL METHODS FOR COMPONENTS AND OBJECTS, 2005, 3657 : 274 - 295
  • [4] Type inference for objects
    Palsberg, J
    [J]. ACM COMPUTING SURVEYS, 1996, 28 (02) : 358 - 359
  • [5] NONMONOTONIC INFERENCE RULES FOR MULTIPLE INHERITANCE WITH EXCEPTIONS
    SANDEWALL, E
    [J]. PROCEEDINGS OF THE IEEE, 1986, 74 (10) : 1345 - 1353
  • [6] Analysis of inheritance and multiple inheritance
    Willis, CP
    [J]. SOFTWARE ENGINEERING JOURNAL, 1996, 11 (04): : 215 - 224
  • [7] SOUND POLYMORPHIC TYPE INFERENCE FOR OBJECTS
    EIFRIG, J
    SMITH, S
    TRIFONOV, V
    [J]. SIGPLAN NOTICES, 1995, 30 (10): : 169 - 184
  • [8] Dynamic inference method for the orbit status of space objects
    Lu, Wanjie
    Lan, Chaozhen
    Lv, Liang
    Shi, Qunshan
    Xu, Qing
    [J]. Xi'an Dianzi Keji Daxue Xuebao/Journal of Xidian University, 2020, 47 (03): : 72 - 79
  • [9] Inference for volatility-type objects and implications for hedging
    Mykland, Per A.
    Zhang, Lan
    [J]. STATISTICS AND ITS INTERFACE, 2008, 1 (02) : 255 - 278
  • [10] What is tracked with dynamic multiple objects?
    Saiki, J.
    [J]. PERCEPTION, 2006, 35 : 126 - 126