Subdivided procedures: a language extension supporting extensible programming

W. Harrison, H. Ossher
{"title":"Subdivided procedures: a language extension supporting extensible programming","authors":"W. Harrison, H. Ossher","doi":"10.1109/ICCL.1990.63774","DOIUrl":null,"url":null,"abstract":"An extension of conventional procedures in which procedure bodies handling multiple cases can be subdivided into separate bodies handling a single case each is described. Subdivision is based on criteria specified by the programmer. Underlying call support selects the body to execute in response to each call. Subdivided procedures support a programming style in which great attention is paid to facilitating subsequent extensions. Normally, extensions have to be made by changing source code; subdivided procedures allow them to be made instead by adding new bodies. Subdivided procedures can be implemented on top of procedural languages with a preprocessor that examines just a file of definitions; it does not need to examine procedure code. A restricted version of the mechanism implemented within the RPDE/sup 3/ environment framework has been in constant use for more than two years. Experience has shown that it facilitates extensible programming at little or no cost in call-time overhead.<<ETX>>","PeriodicalId":317186,"journal":{"name":"Proceedings. 1990 International Conference on Computer Languages","volume":"41 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1990-03-12","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"16","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings. 1990 International Conference on Computer Languages","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ICCL.1990.63774","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 16

Abstract

An extension of conventional procedures in which procedure bodies handling multiple cases can be subdivided into separate bodies handling a single case each is described. Subdivision is based on criteria specified by the programmer. Underlying call support selects the body to execute in response to each call. Subdivided procedures support a programming style in which great attention is paid to facilitating subsequent extensions. Normally, extensions have to be made by changing source code; subdivided procedures allow them to be made instead by adding new bodies. Subdivided procedures can be implemented on top of procedural languages with a preprocessor that examines just a file of definitions; it does not need to examine procedure code. A restricted version of the mechanism implemented within the RPDE/sup 3/ environment framework has been in constant use for more than two years. Experience has shown that it facilitates extensible programming at little or no cost in call-time overhead.<>
细分过程:一种支持可扩展编程的语言扩展
描述了常规程序的扩展,其中处理多个案例的程序主体可以细分为处理单个案例的单独主体。细分是基于程序员指定的标准。底层调用支持为响应每个调用选择要执行的主体。细分过程支持一种编程风格,这种风格非常注重促进后续扩展。通常,必须通过更改源代码来进行扩展;细分的过程允许通过添加新的主体来创建它们。细分的过程可以在过程化语言的基础上通过预处理器来实现,预处理器只检查定义文件;它不需要检查过程代码。在RPDE/sup 3/ environment框架中实现的机制的限制版本已经持续使用了两年多。经验表明,它以很少或没有调用时间开销的代价促进了可扩展编程。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信