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 条
  • [31] Scene Warping: Layer-based Stereoscopic Image Resizing
    Lee, Ken-Yi
    Chung, Cheng-Da
    Chuang, Yung-Yu
    2012 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2012, : 49 - 56
  • [32] Adaptive layer-based computer-generated holograms
    Yao, Yongwei
    Zhang, Yaping
    Fu, Qingyang
    Duan, Jilu
    Zhang, Bing
    Cao, Liangcai
    Poon, Ting-chung
    OPTICS LETTERS, 2024, 49 (06) : 1481 - 1484
  • [33] A Layer-Based Sequential Framework for Scene Generation with GANs
    Turkoglu, Mehmet Ozgur
    Thong, William
    Spreeuwers, Luuk
    Kicanaoglu, Berkay
    THIRTY-THIRD AAAI CONFERENCE ON ARTIFICIAL INTELLIGENCE / THIRTY-FIRST INNOVATIVE APPLICATIONS OF ARTIFICIAL INTELLIGENCE CONFERENCE / NINTH AAAI SYMPOSIUM ON EDUCATIONAL ADVANCES IN ARTIFICIAL INTELLIGENCE, 2019, : 8901 - 8908
  • [34] ORIENTATION OPTIMIZATION IN LAYER-BASED ADDITIVE MANUFACTURING PROCESS
    Luo, Zhibo
    Yang, Fan
    Dong, Guoying
    Tang, Yunlong
    Zhao, Yaoyao Fiona
    PROCEEDINGS OF THE ASME INTERNATIONAL DESIGN ENGINEERING TECHNICAL CONFERENCES AND COMPUTERS AND INFORMATION IN ENGINEERING CONFERENCE, 2016, VOL 1A, 2016,
  • [35] Link layer-based TCP optimisation for disconnecting networks
    Scott, J
    Mapp, G
    ACM SIGCOMM COMPUTER COMMUNICATION REVIEW, 2003, 33 (05) : 31 - 42
  • [36] Fourier ptychographic layer-based imaging of hazy environments
    Hu, Guiqin
    Liu, Yu
    Chu, Xiuxiang
    Liu, Ziyuan
    RESULTS IN PHYSICS, 2024, 56
  • [37] A layer-based layout approach for semiconductor fabrication facilities
    Chang, CF
    Chang, SK
    ASMC 98 PROCEEDINGS - 1998 IEEE/SEMI ADVANCED SEMICONDUCTOR MANUFACTURING CONFERENCE AND WORKSHOP: THEME - SEMICONDUCTOR MANUFACTURING: MEETING THE CHALLENGES OF THE GLOBAL MARKETPLACE, 1998, : 385 - 390
  • [38] Layer-based Object Detection and Tracking with Graph Matching
    He, Qiang
    Chu, Chee-Hung Henry
    AIRBORNE INTELLIGENCE, SURVEILLANCE, RECONNAISSANCE (ISR) SYSTEMS AND APPLICATIONS VIII, 2011, 8020
  • [39] Decision criteria for build orientation in layer-based machining
    Yang, ZY
    Chen, YH
    INTELLIGENT SYSTEMS IN DESIGN AND MANUFACTURING III, 2000, 4192 : 16 - 26
  • [40] A layer-based virtual prototyping system for product development
    Choi, SH
    Chan, AMM
    COMPUTERS IN INDUSTRY, 2003, 51 (03) : 237 - 256