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 条
  • [21] Determining Build Orientation for Layer-Based Machining
    Z.Y. Yang
    Y.H. Chen
    W.S. Sze
    The International Journal of Advanced Manufacturing Technology, 2001, 18 : 313 - 322
  • [22] Layer-based sparse representation of multiview images
    Andriy Gelman
    Jesse Berent
    Pier Luigi Dragotti
    EURASIP Journal on Advances in Signal Processing, 2012
  • [23] Layer-based decomposition of solids and its applications
    Rueda, AJ
    Feito, FR
    Ortega, LM
    VISUAL COMPUTER, 2005, 21 (06): : 406 - 417
  • [24] A Layer-based Segmentation Method for Compound Images
    Mtimet, Jassem
    Amiri, Hamid
    2013 10TH INTERNATIONAL MULTI-CONFERENCE ON SYSTEMS, SIGNALS & DEVICES (SSD), 2013,
  • [25] A Layer-based Structured Design of CNN on FPGA
    Huang, Chao
    Ni, Siyu
    Chen, Gengsheng
    2017 IEEE 12TH INTERNATIONAL CONFERENCE ON ASIC (ASICON), 2017, : 1037 - 1040
  • [26] Layer-based sparse representation of multiview images
    Gelman, Andriy
    Berent, Jesse
    Dragotti, Pier Luigi
    EURASIP JOURNAL ON ADVANCES IN SIGNAL PROCESSING, 2012, : 1 - 15
  • [27] Layer-Based Temporal Dependent Rate-Distortion Optimization in Random-Access Hierarchical Video Coding
    Gao, Yanbo
    Zhu, Ce
    Li, Shuai
    Yang, Tianwu
    2016 IEEE 18TH INTERNATIONAL WORKSHOP ON MULTIMEDIA SIGNAL PROCESSING (MMSP), 2016,
  • [28] A layer-based Chinese document image encoding method
    Huang, Xianglin
    Fu, Min
    Yang, Zhao
    Zhang, Hui
    Zhuang, Pengzhou
    Lv, Rui
    WMSCI 2007: 11TH WORLD MULTI-CONFERENCE ON SYSTEMICS, CYBERNETICS AND INFORMATICS, VOL II, PROCEEDINGS, 2007, : 233 - 238
  • [29] A Combined Layer-Based Approach for the Segmentation of Document Images
    Mtimet, Jassem
    Amiri, Hamid
    JOURNAL OF CIRCUITS SYSTEMS AND COMPUTERS, 2017, 26 (10)
  • [30] LoRaWAN Physical Layer-Based Attacks and Countermeasures, A Review
    Ruotsalainen, Henri
    Shen, Guanxiong
    Zhang, Junqing
    Fujdiak, Radek
    SENSORS, 2022, 22 (09)