首页    期刊浏览 2025年07月04日 星期五
登录注册

文章基本信息

  • 标题:A Selective CPS Transformation
  • 本地全文:下载
  • 作者:Lasse R. Nielsen
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:2001
  • 卷号:8
  • 期号:30
  • 出版社:Aarhus University
  • 摘要:The CPS transformation makes all functions continuation-passing, uniformly. Not all functions, however, need continuations: they only do if their evaluation includes computational effects. In this paper we focus on control operations, in particular ``call with current continuation'' and ``throw''. We characterize this involvement as a control effect and we present a selective CPS transformation that makes functions and expressions continuation-passing if they have a control effect, and that leaves the rest of the program in direct style. We formalize this selective CPS transformation with an operational semantics and a simulation theorem à la Plotkin.
国家哲学社会科学文献中心版权所有