OO语言中的可扩展性与可替代性

J. Gil
{"title":"OO语言中的可扩展性与可替代性","authors":"J. Gil","doi":"10.1109/TOOLS.1997.681894","DOIUrl":null,"url":null,"abstract":"This tutorial presents a systematic yet non-formal study of inheritance, the principal abstraction tool of 00 programs. We will follow the different approaches to the design of the inheritance mechanism, starting from the crude mechanisms of Smalltalk, then next with the strict and mathematically sound, but not very useful, model of Oberon, continuing with the smorgasbord of C++, and ending with Java and Eiffel. We will see that the two basic demands from this mechanism: substitutability and extendibility are contradictory in nature, and how different approaches try to reconcile the tension between them. We then show how a clean separation between type and class, as inspired by ideas from Java, Eiffel and Sather, can help solve many of these tensions, at the price of introducing a slightly more complicated underlying model to the programmer. The discussion will culminate in the study of the problematics of multiple inheritance.","PeriodicalId":276758,"journal":{"name":"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)","volume":"1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1997-11-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"Extendibility vs. Substitutability in OO Languages\",\"authors\":\"J. Gil\",\"doi\":\"10.1109/TOOLS.1997.681894\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"This tutorial presents a systematic yet non-formal study of inheritance, the principal abstraction tool of 00 programs. We will follow the different approaches to the design of the inheritance mechanism, starting from the crude mechanisms of Smalltalk, then next with the strict and mathematically sound, but not very useful, model of Oberon, continuing with the smorgasbord of C++, and ending with Java and Eiffel. We will see that the two basic demands from this mechanism: substitutability and extendibility are contradictory in nature, and how different approaches try to reconcile the tension between them. We then show how a clean separation between type and class, as inspired by ideas from Java, Eiffel and Sather, can help solve many of these tensions, at the price of introducing a slightly more complicated underlying model to the programmer. The discussion will culminate in the study of the problematics of multiple inheritance.\",\"PeriodicalId\":276758,\"journal\":{\"name\":\"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)\",\"volume\":\"1 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"1997-11-24\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/TOOLS.1997.681894\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Proceedings. Technology of Object-Oriented Languages and Systems, TOOLS 25 (Cat. No.97TB100239)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/TOOLS.1997.681894","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

摘要

本教程对继承(00程序的主要抽象工具)进行了系统而非正式的研究。我们将遵循设计继承机制的不同方法,从Smalltalk的粗糙机制开始,然后是Oberon的严格且数学上合理但不是很有用的模型,接着是c++的自助餐,最后是Java和Eiffel。我们将看到这种机制的两个基本要求:可替代性和可扩展性在本质上是矛盾的,以及不同的方法如何试图调和它们之间的紧张关系。然后,我们展示了受Java、Eiffel和Sather的启发,类型和类之间的清晰分离如何有助于解决这些紧张关系,但代价是向程序员引入稍微复杂一些的底层模型。讨论将在多重继承问题的研究中达到高潮。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Extendibility vs. Substitutability in OO Languages
This tutorial presents a systematic yet non-formal study of inheritance, the principal abstraction tool of 00 programs. We will follow the different approaches to the design of the inheritance mechanism, starting from the crude mechanisms of Smalltalk, then next with the strict and mathematically sound, but not very useful, model of Oberon, continuing with the smorgasbord of C++, and ending with Java and Eiffel. We will see that the two basic demands from this mechanism: substitutability and extendibility are contradictory in nature, and how different approaches try to reconcile the tension between them. We then show how a clean separation between type and class, as inspired by ideas from Java, Eiffel and Sather, can help solve many of these tensions, at the price of introducing a slightly more complicated underlying model to the programmer. The discussion will culminate in the study of the problematics of multiple inheritance.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:604180095
Book学术官方微信