Closures for statically-typed object-oriented languages

被引:0
|
作者
Guimaraes, JD [1 ]
机构
[1] UFSCar, Dept Computacao, Sao Carlos, SP, Brazil
关键词
closure; smalltalk blocks; object-oriented languages; green;
D O I
暂无
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Closures increase considerably the level of a language by mixing access to local variables with remote execution of a set of locally-defined statements. However, to date closures have not been added to statically-typed languages because it is difficult to type them and runtime errors occur if local variables that no longer exist are accessed. We proposed a limited but quite general kind of closure for statically-typed object-oriented languages. They can be used in most situations normal closures can without introducing any runtime errors.
引用
收藏
页码:54 / 60
页数:7
相关论文
共 50 条
  • [21] OPTIMIZING DYNAMICALLY-TYPED OBJECT-ORIENTED LANGUAGES WITH POLYMORPHIC IN-LINE CACHES
    HOLZLE, U
    CHAMBERS, C
    UNGAR, D
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1991, 512 : 21 - 38
  • [22] Foundations of object-oriented languages
    Bruce, K
    Remy, D
    [J]. INFORMATION AND COMPUTATION, 2002, 172 (01) : 1 - 1
  • [23] COMPARING OBJECT-ORIENTED LANGUAGES
    FLOYD, M
    [J]. DR DOBBS JOURNAL, 1993, 18 (10): : 104 - &
  • [24] Run-time manipulation of programs in a statically-typed language
    Greiner, Sašo
    [J]. Informatica (Ljubljana), 2009, 33 (03) : 397 - 398
  • [25] Inferable Object-Oriented Typed Assembly Language
    Tate, Ross
    Chen, Juan
    Hawblitzel, Chris
    [J]. ACM SIGPLAN NOTICES, 2010, 45 (06) : 424 - 435
  • [26] Inferable Object-Oriented Typed Assembly Language
    Tate, Ross
    Chen, Juan
    Hawblitzel, Chris
    [J]. PLDI '10: PROCEEDINGS OF THE 2010 ACM SIGPLAN CONFERENCE ON PROGRAMMING LANGUAGE DESIGN AND IMPLEMENTATION, 2010, : 424 - 435
  • [27] Run-time Manipulation of Programs in a Statically-Typed Language
    Greiner, Saso
    [J]. INFORMATICA-JOURNAL OF COMPUTING AND INFORMATICS, 2009, 33 (03): : 397 - 398
  • [28] Constrained Types for Object-Oriented Languages
    Nystrom, Nathaniel
    Saraswat, Vijay
    Palsberg, Jens
    Grothoff, Christian
    [J]. ACM SIGPLAN NOTICES, 2008, 43 (10) : 457 - 474
  • [29] PARALLELISM IN OBJECT-ORIENTED LANGUAGES - A SURVEY
    WYATT, BB
    KAVI, K
    HUFNAGEL, S
    [J]. IEEE SOFTWARE, 1992, 9 (06) : 56 - 66
  • [30] Interfacing Haskell with object-oriented languages
    Pang, ATH
    Chakravarty, MMT
    [J]. IMPLEMENTATION OF FUNCTIONAL LANGUAGES, 2004, 3145 : 20 - 35