首页 | 本学科首页   官方微博 | 高级检索  
     检索      

C**类型约束编程概要
引用本文:孙斌.C**类型约束编程概要[J].科学技术与工程,2005,5(2):100-109112.
作者姓名:孙斌
作者单位:北京大学信息科学技术学院,北京,100871
基金项目:国家自然科学基金(60203022)资助
摘    要:对面向对象、泛型程序设计(Generic Programming)进行了较为深入的分析,阐明了各自的目标、技术特征及其优缺点,着重论述了C 语言的一个泛型编程扩充语言C如何通过一种叫做"命名类型约束"的新的机制来实现静态类型需求的直接语言支持和编译检查,实现类型约束编程。

关 键 词:面向对象  泛型程序设计  类型约束编程
文章编号:1671-1815(2005)02-0100-11

Overview of Type Constrained Programming in C **
SUN Bin.Overview of Type Constrained Programming in C **[J].Science Technology and Engineering,2005,5(2):100-109112.
Authors:SUN Bin
Abstract:A thorough and in-depth analysis of the underlying ideas and methodology of object-orientation and generic programming, elaborating the aims, technological characteristics, advantages and disadvantages of both are presented. 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 type-constrained programming (TCP) languages in the literatures, a TCP extension of C , C , are discussed, illustrating how to efficiently and economically implement the mechanism.
Keywords:object orientation generic programming type constraint typed-constrained programming
本文献已被 CNKI 维普 万方数据 等数据库收录!
点击此处可从《科学技术与工程》浏览原始摘要信息
点击此处可从《科学技术与工程》下载免费的PDF全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号