Hierarchical Layer-Based Class Extensions in Squeak/Smalltalk

被引:0
|
作者
Springer, Matthias [1 ]
Masuhara, Hidehiko [1 ]
Hirschfeld, Robert [2 ,3 ,4 ]
机构
[1] Tokyo Inst Technol, Dept Math & Comp Sci, Tokyo, Japan
[2] Univ Potsdam, Hasso Plattner Inst, Potsdam, Germany
[3] SAP Labs, CDG, Palo Alto, CA USA
[4] Viewpoints Res Inst, Glendale, CA USA
关键词
Class extension; context-oriented programming; mixins;
D O I
10.1145/2892664.2892682
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
Class extensions are frequently used in programming languages such as Ruby and Smalltalk to add or change methods of a class that is defined in the same application or in a different one. They suffer from modularity issues if globally visible: Other applications using the same classes are then affected by the modifications. This paper presents a hierarchical approach for dynamically scoping class extensions in dynamically-typed, class-based programming languages supporting class nesting. Our mechanism allows programmers to define the scope of class extensions and to reuse class extensions in other programs. Class extensions can be scoped according to a nested class hierarchy or based on whether programmers regard a potentially affected class as a black box or not. Class extensions are organized in layers, where multiple layers targeting the same class can be active at the same time.
引用
收藏
页码:107 / 112
页数:6
相关论文
共 50 条
  • [41] Real-valued layer-based hologram calculation
    Yasuki, Daiki
    Shimobaba, Tomoyoshi
    Makowski, Michal
    Suszek, Jaroslaw
    Sypek, Maciej
    Kakue, Takashi
    Ito, Tomoyoshi
    OPTICS EXPRESS, 2022, 30 (05): : 7821 - 7830
  • [42] Layer-based Image Completion by Poisson Surface Reconstruction
    Liu, Hengjin
    Jia, Huizhu
    Xie, Xiaodong
    Kong, Xiangyu
    Bai, Yuanchao
    Gao, Wen
    2014 IEEE VISUAL COMMUNICATIONS AND IMAGE PROCESSING CONFERENCE, 2014, : 438 - 441
  • [43] MULTIVIEW IMAGE COMPRESSION USING A LAYER-BASED REPRESENTATION
    Gelman, Andriy
    Dragotti, Pier Luigi
    Velisavljevic, Vladan
    2010 IEEE INTERNATIONAL CONFERENCE ON IMAGE PROCESSING, 2010, : 493 - 496
  • [44] 4D propagated layer-based inversion
    Thore, Pierre
    Blanchard, Thomas D.
    GEOPHYSICS, 2015, 80 (01) : R15 - R29
  • [45] Layer-based representation of polyhedrons for point containment tests
    Wang, Wencheng
    Li, Jing
    Sun, Hanqiu
    Wu, Enhua
    IEEE TRANSACTIONS ON VISUALIZATION AND COMPUTER GRAPHICS, 2008, 14 (01) : 73 - 83
  • [46] Layer-based ID assigning method for sensor networks
    Kang, Jung Hun
    Park, Myong-Soon
    UBIQUITOUS CONVERGENCE TECHNOLOGY, 2007, 4412 : 210 - +
  • [47] Develop a process planning model for layer-based machining
    Yang, ZY
    Chen, YH
    Sze, WS
    ICMA 2002 INTERNATIONAL CONFERENCE ON MANUFACTURING AUTOMATION, 2002, : 441 - 450
  • [48] A Layer-Based Relaxation Approach for Service Network Design
    Diao, Xudong
    Gao, Ai
    Jin, Xin
    Chen, Hui
    SUSTAINABILITY, 2022, 14 (20)
  • [49] A RESEARCH PARADIGM FOR PROPAGATING ERROR IN LAYER-BASED GIS
    LANTER, DP
    VEREGIN, H
    PHOTOGRAMMETRIC ENGINEERING AND REMOTE SENSING, 1992, 58 (06): : 825 - 833
  • [50] A FAST LAYER-BASED MULTIVIEW IMAGE CODING ALGORITHM
    Gelman, Andriy
    Onativia, Jon
    Dragotti, Pier Luigi
    2012 PROCEEDINGS OF THE 20TH EUROPEAN SIGNAL PROCESSING CONFERENCE (EUSIPCO), 2012, : 1224 - 1228