ISO/IEC 11404:2007
(Main)Information technology — General-Purpose Datatypes (GPD)
Information technology — General-Purpose Datatypes (GPD)
ISO/IEC 11404:2007 specifies the nomenclature and shared semantics for a collection of datatypes commonly occurring in programming languages and software interfaces, referred to as the General-Purpose Datatypes (GPD). It specifies both primitive datatypes, in the sense of being defined ab initio without reference to other datatypes, and non-primitive datatypes, in the sense of being wholly or partly defined in terms of other datatypes. The specification of datatypes in ISO/IEC 11404:2007 is "general-purpose" in the sense that the datatypes specified are classes of datatype of which the actual datatypes used in programming languages and other entities requiring the concept "datatype" are particular instances. These datatypes are general in nature; thus, they serve a wide variety of information processing applications. ISO/IEC 11404:2007 expressly distinguishes three notions of datatype: the conceptual, or abstract, notion of a datatype, which characterizes the datatype by its nominal values and properties; the structural notion of a datatype, which characterizes the datatype as a conceptual organization of specific component datatypes with specific functionalities; and the implementation notion of a datatype, which characterizes the datatype by defining the rules for representation of the datatype in a given environment. ISO/IEC 11404:2007 defines the abstract notions of many commonly used primitive and non-primitive datatypes which possess the structural notion of atomicity. ISO/IEC 11404:2007 does not define all atomic datatypes; it defines only those which are common in programming languages and software interfaces. ISO/IEC 11404:2007 defines structural notions for the specification of other non-primitive datatypes, and provides a means by which datatypes not defined herein can be defined structurally in terms of the GPDs defined herein. ISO/IEC 11404:2007 defines a partial terminology for implementation notions of datatypes and provides for the use of this terminology in the definition of datatypes. The primary purpose of this terminology is to identify common implementation notions associated with datatypes and to distinguish them from conceptual notions. ISO/IEC 11404:2007 specifies the required elements of mappings between the GPDs and the datatypes of some other language. ISO/IEC 11404:2007 does not specify the precise form of a mapping, but rather the required information content of a mapping.
Technologies de l'information — Types de données à but général (GPD)
General Information
Relations
Standards Content (Sample)
INTERNATIONAL ISO/IEC
STANDARD 11404
Second edition
2007-12-15
Information technology — General-
Purpose Datatypes (GPD)
Technologies de l'information — Types de données
Reference number
©
ISO/IEC 2007
PDF disclaimer
This PDF file may contain embedded typefaces. In accordance with Adobe's licensing policy, this file may be printed or viewed but
shall not be edited unless the typefaces which are embedded are licensed to and installed on the computer performing the editing. In
downloading this file, parties accept therein the responsibility of not infringing Adobe's licensing policy. The ISO Central Secretariat
accepts no liability in this area.
Adobe is a trademark of Adobe Systems Incorporated.
Details of the software products used to create this PDF file can be found in the General Info relative to the file; the PDF-creation
parameters were optimized for printing. Every care has been taken to ensure that the file is suitable for use by ISO member bodies. In
the unlikely event that a problem relating to it is found, please inform the Central Secretariat at the address given below.
© ISO/IEC 2007
All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by any means,
electronic or mechanical, including photocopying and microfilm, without permission in writing from either ISO at the address below or
ISO's member body in the country of the requester.
ISO copyright office
Case postale 56 • CH-1211 Geneva 20
Tel. + 41 22 749 01 11
Fax + 41 22 749 09 47
E-mail copyright@iso.org
Web www.iso.org
Published in Switzerland
ii © ISO/IEC 2007 – All rights reserved
Contents Page
Foreword. vi
0 Introduction. vii
1 Scope .1
2 Normative references .1
3 Terms and definitions .2
4 Conformance.8
4.1 Direct conformance .8
4.2 Indirect conformance .9
4.3 Conformance of a mapping standard.9
4.4 GPD program conformance.10
5 Conventions used in this International Standard.10
5.1 Formal syntax.10
5.2 Text conventions .11
6 Fundamental notions .11
6.1 Datatype.11
6.2 Value space .12
6.3 Datatype properties .12
6.3.1 Equality .13
6.3.2 Order .13
6.3.3 Bound.13
6.3.4 Cardinality .14
6.3.5 Exact and approximate .14
6.3.6 Numeric.14
6.4 Primitive and non-primitive datatypes .15
6.5 Datatype generator .15
6.6 Characterizing operations .15
6.7 Datatype families .16
6.8 Aggregate datatypes .17
6.8.1 Homogeneity .17
6.8.2 Size.17
6.8.3 Uniqueness.17
6.8.4 Aggregate-imposed identifier uniqueness.18
6.8.5 Aggregate-imposed ordering .18
6.8.6 Access method .18
6.8.7 Recursive structure .19
6.8.8 Structured and unstructured .19
6.8.9 Mandatory and optional components.19
6.9 Provisions associated with datatypes.19
7 Elements of the Datatype Specification Language .21
7.1 IDN character-set .21
7.2 Whitespace .22
7.3 Lexical objects .23
7.3.1 Identifiers.23
7.3.2 Digit-string.23
7.3.3 Character-literal and string-literal.23
7.3.4 Keywords.24
7.4 Annotations .24
7.5 Values .25
© ISO/IEC 2007 – All rights reserved iii
7.5.1 Independent values. 25
7.5.2 Dependent values . 26
7.6 GPD program text . 27
8 Datatypes . 27
8.1 Primitive datatypes . 28
8.1.1 Boolean . 29
8.1.2 State. 30
8.1.3 Enumerated. 31
8.1.4 Character. 32
8.1.5 Ordinal. 33
8.1.6 Date-and-Time . 34
8.1.7 Integer . 35
8.1.8 Rational . 36
8.1.9 Scaled. 37
8.1.10 Real. 38
8.1.11 Complex . 40
8.1.12 Void. 41
8.2 Subtypes and extended types . 42
8.2.1 Range . 43
8.2.2 Selecting . 43
8.2.3 Excluding . 44
8.2.4 Size . 44
8.2.5 Explicit subtypes. 45
8.2.6 Extended . 45
8.3 Generated datatypes. 46
8.3.1 Choice . 47
8.3.2 Pointer . 49
8.3.3 Procedure. 50
8.4 Aggregate Datatypes . 53
8.4.1 Record . 55
8.4.2 Class. 56
8.4.3 Set. 58
8.4.4 Bag. 59
8.4.5 Sequence . 60
8.4.6 Array .
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.