ISO/IEC 10514-2:1998 情報技術—プログラミング言語—パート2:ジェネリックスModula-2 | ページ 4

※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。

1 スコープ

1.1 一般

ISO/IEC 10514 のこの部分では、汎用プログラミング機能をベース Modula-2 に追加できるようにする拡張機能を指定しています。

基本言語で許可されている有効なプログラムの意味を変更することなく、国際標準 ISO/IEC 10514-1 で定義されている言語 (この標準で導入された新しいキーワードの使用を除く - 5 節を参照)

1.2 ISO/IEC 10514 のこのパートに含まれる仕様

基本言語に含まれる仕様に加えて、ISO/IEC 10514 のこの部分では、次の仕様が提供されます。

  • 一般的な拡張子を持つ ISO 標準 Modula-2 で記述されたプログラムに必要な記号。
  • 一般的な拡張機能を備えた ISO 標準 Modula-2 で記述されたプログラムの字句構造とセマンティクス。
  • 一般的な拡張機能を備えた ISO 標準 Modula-2 で記述されたプログラムの構文。
  • 準拠する実装が検出する必要がある一般的な拡張機能の使用に関する規則の違反。
  • 文書化要件を含む、実装のためのさらなるコンプライアンス要件。

1.3 ISO/IEC 10514-1 との関係

ISO/IEC 10514 のこのパートは、マルチパート標準 ISO/IEC 10514 のPart 2 です。 IEC 10514 は、ベース言語に関してオプションです。 ISO/IEC 10514 のこのパートは、Part 1 を除いて、ISO/IEC 10514 の他のパートとも独立しており、そのような他のパートと一緒に、または独立して採用することができます。

1.4 ISO/IEC 10514 のこのパートの範囲外の仕様

Base Language によって除外された仕様のカテゴリに加えて、ISO/IEC 10514 のこの部分では、次の仕様は提供されていません。

  • 一般的なライブラリ モジュールから特定の改良を構築する方法。
  • ジェネリック ライブラリ モジュール、それらに関連付けられた調整モジュール、およびこれらによって生成された調整が格納される方法 (ファイルが使用されるモジュール名とシステム ファイル名の間の対応を含む)

1 Scope

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).