Verifying traits: an incremental proof system for fine-grained reuse
Verifying traits: an incremental proof system for fine-grained reuse
复制标题
验证特征:用于细粒度重用的增量证明系统
DOI:
10.1007/s00165-013-0278-3
复制
发表时间:
2014
影响因子:
1
通讯作者:
Ina Schaefer
中科院分区:
文献类型:
--
作者:
Ferruccio Damiani;Johan Dovland;Einar Broch Johnsen;Ina Schaefer
Traits have been proposed as a more flexible mechanism than class inheritance for structuring code in object-oriented programming, to achieve fine-grained code reuse. A trait originally developed for one purpose can be adapted and reused in a completely different context. Formalizations of traits have been extensively studied, and implementations of traits have started to appear in programming languages. So far, work on formally establishing properties of trait-based programs has mostly concentrated on type systems. This paper presents the first deductive proof system for a trait-based object-oriented language. If a specification of a trait can be given a priori, covering all actual usage of that trait, our proof system is modular as each trait is analyzed only once. However, imposing such a restriction may in many cases unnecessarily limit traits as a mechanism for flexible code reuse. In order to reflect the flexible reuse potential of traits, our proof system additionally allows new specifications to be added to a trait in anincrementalway which does not violate established proofs. We formalize and show the soundness of the proof system.
登录
查看更多内容
DOI:
--
发表时间:
2010
期刊:
TOPL
影响因子:
--
作者:
B. D. Fraine;Erik Ernst;Mario Südholt
通讯作者:
Mario Südholt
DOI:
--
发表时间:
2011
期刊:
FTfJP@ECOOP
影响因子:
--
作者:
Ferruccio Damiani;Johan Dovland;E. Johnsen;Ina Schaefer
通讯作者:
Ina Schaefer
DOI:
10.1145/2364412.2364422
发表时间:
2012
期刊:
ACM Trans. Program. Lang. Syst.
影响因子:
--
作者:
Ferruccio Damiani;Olaf Owe;Johan Dovland;Ina Schaefer;E. Johnsen;Ingrid Chieh Yu
通讯作者:
Ingrid Chieh Yu
DOI:
10.1007/978-3-642-34026-0_4
发表时间:
2012
期刊:
Software - Practice and Experience
影响因子:
--
作者:
Reiner Hähnle;Ina Schaefer
通讯作者:
Ina Schaefer
DOI:
10.1007/978-3-642-13414-2_4
发表时间:
2010
期刊:
Proceedings of the 17th ACM SIGPLAN International Conference on Generative Programming: Concepts and Experiences
影响因子:
--
作者:
Lorenzo Bettini;Ferruccio Damiani;M. D. Luca;Kathrin Geilmann;Jan Schäfer
通讯作者:
Jan Schäfer