标准号:BS ISO/IEC 10514-2-1998
中文标准名称:信息技术.程序设计语言.模数-2,类模数-2
英文标准名称:Information technology - Programming languages - Modula-2, generics in Modula-2
标准类型:L74
发布日期:1999/5/15 12:00:00
实施日期:1999/5/15 12:00:00
中国标准分类号:L74
国际标准分类号:35.060
适用范围: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).
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.
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 l,and can be adopted either together with or independently of such other parts.
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).