期刊文献+

面向对象、泛型程序设计与类型约束检查 被引量:16

Object Orientation, Generic Programming and Type Constraint Checking
下载PDF
导出
摘要 该文对面向对象和泛型程序设计 (genericprogramming)的核心思想和方法进行了较为深入的分析 ,阐明了各自的目标、技术特征及其优缺点所在 ,介绍了泛型程序设计针对对象技术的不足所引进的重大革新 ,即通过类型需求抽象来设计通用、高效的数据结构和算法 ;着重论述了作者在进一步增强泛型程序设计实际运用方面所提出的改进工作 ,以C ++语言的一个泛型编程扩充语言C 为实施例 ,详细说明了如何通过一种叫做“命名类型约束”的新的机制来比较完整地实现静态类型需求的直接语言支持和编译检查 ,为当前泛型程序设计模型的首例编程语言实例 . A thorough and in-depth analysis of the underlying ideas and methodology of object-orientation and generic programming is presented, elaborating the aims, technological characteristics, advantages and disadvantages of both, with the emphasis on the significant innovation introduced by generic programming to compensate object-orientation for its insufficiency. The paper also details the author's work on further enhancing generic programming by providing direct language support and compiler checking for static type requirements, which leads to a new programming mechanism called named type constraint. As the first example of generic programming languages in the literatures, a generic programming extension of C++ is also discussed.
作者 孙斌
出处 《计算机学报》 EI CSCD 北大核心 2004年第11期1492-1504,共13页 Chinese Journal of Computers
基金 国家自然科学基金项目 (60 2 0 3 0 2 2 ) (泛型程序设计方法 语言和泛型程序库研究 )资助 .
关键词 面向对象 泛型程序设计 需求检查 类型约束 程序设计 Constraint theory Requirements engineering Software engineering
  • 相关文献

参考文献43

  • 1Dahl O-J, Myrhaug B., Nygaard K..(Simula 67)Common Base Language. Norwegian Computing Center: Publication N.S-22, Oslo, 1970
  • 2Goldberg A., Robson D.. Smalltalk-80: The Language and Its Implementation. Reading, MA: Addison-Wesley, 1983
  • 3Stroustrup B.. The C+ +Programming Language. Reading, MA: Addison-Wesley, 1986; 2nd ed., 1991; 3rd ed., 1997
  • 4Meyer B.. Eiffel: A language and environment for software engineering. The Journal of Systems and Software, 1988,(8)
  • 5Microsoft .NET Platform. http://www.microsoft.com/net/default.asp
  • 6Sun Open Net Environment(ONE). http://www.sun.com/software/sunone/index.html
  • 7Hejsberg A.,Wiltamuth S.. C#Language Reference.Microsoft Co., June 2000. http://msdn.microsoft.com/library/default.asp)
  • 8Gosling J., Joy B., Steel G.. The Java Language Specification. Reading, MA: Addison-Wesley, 1997
  • 9Cardelli L. et al.. Modula-3 language definition. ACM SIGPLAN Notices, 1992, 27(8): 15-42
  • 10Baumgartner G., Russo V.. Type abstraction using signature. In: Stallman R.M. ed. Using and Porting GNU CC, Cambridge, MA: FSF, 1995

二级参考文献3

  • 1Bing Swen,Department of Computer Science and Technology,Peking University:Technical Report,1999年
  • 2Bing Swen,Proc 27th TOOLS Asia'98 and the 2nd OOT China'98,1998年
  • 3Wang Binjun,Proc TOOLS Asia,1997年

共引文献5

同被引文献154

引证文献16

二级引证文献46

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部