标准摘要
[中文适用范围]: 概述 ISO/IEC 10514 的这一部分规定了扩展,允许将通用编程工具添加到国际标准 ISO/IEC 10514-1 中定义的基本 Modula-2 语言中,而不改变基本语言允许的有效程序的含义(除了本标准引入的 new 关键字的使用——参见第 5 条)。 2 ISO/IEC 10514 本部分中包含的规范 除了基本语言中包含的规范外,ISO/IEC 10514 本部分还提供了以下规范: ——以带有通用扩展的 ISO 标准 Modula-2 编写的程序所需的符号; ——用带有通用扩展的 ISO 标准 Modula-2 编写的程序的词法结构和语义; ——以 ISO 标准 Modula-2 编写并具有通用扩展的程序的语法; ——违反通用扩展的使用规则,需要一致的实现来检测; ——实施的进一步合规要求,包括文件要求。 3 与 ISO/IEC 10514-1 的关系 ISO/IEC 10514 的这一部分是多部分标准 ISO/IEC 10514 的第二部分。 ISO/IEC 10514 的这一部分扩展并修改了基本语言 ISO/IEC 10514-1,但对于基本语言而言,ISO/IEC 10514 这部分的采用是可选的。 除第 1 部分外,ISO/IEC 10514 的这一部分也独立于 ISO/IEC 10514 的任何其他部分,并且可以与其他部分一起采用或独立采用。 4 不在 ISO/IEC 10514 本部分范围内的规范 除了基本语言排除的规范类别外,ISO/IEC 10514 本部分未提供以下规范: ——从通用库构建特定细化的方法模块; ——通用库模块、其关联的细化模块以及由这些模块产生的细化的存储方法(包括模块名称和使用文件的系统文件名之间的任何对应关系)。 [外文原描述]: 1.1 General This part of ISO/IEC 10514 specifies extensions to allow generic programming facilities to be added to the base Modula-2 language defined in International Standard ISO/IEC 10514-1 without altering the meaning of valid programs allowed by the Base Language (except for the use of the new keyword introduced by this standard—see clause 5). 1.2 Specifications included in this part of ISO/IEC 10514 In addition to the specifications included in the Base Language this part of ISO/IEC 10514 provides specifications for: — required symbols for programs written in ISO Standard Modula-2 with Generic extensions; — the lexical structure and semantics of programs written in ISO Standard Modula-2 with Generic extensions; — the syntax of programs written in ISO Standard Modula-2 with Generic extensions; — violations of the rules for the use of the Generic extensions that a conforming implementation is required to detect; — further compliance requirements for implementations, including documentation requirements. 1.3 Relationship to ISO/IEC 10514-1 This part of ISO/IEC 10514 is part two of the multi-part Standard ISO/IEC 10514. This part of ISO/IEC 10514 extends and modifies the Base Language ISO/IEC 10514-1, but the adoption of this part of ISO/IEC 10514 is optional with respect to the Base Language. This part of ISO/IEC 10514 is also independent of any other parts of ISO/IEC 10514, except for part 1, and can be adopted either together with or independently of such other parts. 1.4 Specifications not within the scope of this part of ISO/IEC 10514 In addition to the categories of specifications excluded by the Base Language this part of ISO/IEC 10514 provides no specifications for: — the method by which specific refinements are constructed from generic library modules; — the method by which generic library modules, their associated refining modules, and the refinements produced by these are stored (including any correspondence between the module names and system file names where files are used).
英文名称Information technology - Programming languages - Part 2: Generics Modula-2