Information Technology — General-Purpose Datatypes (GPD)
Total Page:16
File Type:pdf, Size:1020Kb
© ISO 2005 – All rights reserved Reference number of working document: ISO/IEC JTC1 SC22 WG11 N0495 Date: 2005-01-11 Reference number of document: ISO/IEC FCD 11404 (revision) Committee identification: ISO/IEC JTC1 SC22 WG11 SC22 Secretariat: US Information technology — General-Purpose Datatypes (GPD) Warning This document is not an ISO International Standard. It is distributed for review and comment. It is subject to change without notice and may not be referred to as an International Standard. Recipients of this draft are invited to submit, with their comments, notification of any relevant patent rights of which they are aware and to provide supporting documentation. Document type: International standard Document subtype: if applicable Document stage: (30) Committee (FCD) Document language: E ISO/IEC FCD 11404 (revision) Copyright notice This ISO document is a working draft or committee draft and is copyright-protected by ISO. While the reproduction of working drafts or committee drafts in any form for use by participants in the ISO standards development process is permitted without prior permission from ISO, neither this document nor any extract from it may be reproduced, stored or transmitted in any form for any other purpose without prior written permission from ISO. Requests for permission to reproduce this document for the purpose of selling it should be addressed as shown below or to 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 [email protected] Web www.iso.org Reproduction for sales purposes may be subject to royalty payments or a licensing agreement. Violators may be prosecuted. ii © ISO 2005 – All rights reserved ISO/IEC FCD 11404 (revision) Contents Page Foreword ............................................................................................................................................................ix Introduction.........................................................................................................................................................x 1 Scope......................................................................................................................................................1 2 Normative references............................................................................................................................2 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 text 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 ...................................................................................................................................................14 6.3.4 Cardinality ............................................................................................................................................14 6.3.5 Exact and approximate .......................................................................................................................14 6.3.6 Numeric ................................................................................................................................................15 6.4 Primitive and non-primitive datatypes ..............................................................................................15 6.5 Datatype generator..............................................................................................................................15 6.6 Characterizing operations ..................................................................................................................16 6.7 Datatype families .................................................................................................................................17 6.8 Aggregate datatypes...........................................................................................................................17 6.8.1 Homogeneity........................................................................................................................................17 6.8.2 Size........................................................................................................................................................18 6.8.3 Uniqueness ..........................................................................................................................................18 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 ...............................................................................................20 6.9 Provisions associated with datatypes ..............................................................................................20 7 Elements of the Datatype Specification Language..........................................................................22 7.1 IDN character-set.................................................................................................................................22 7.2 Whitespace...........................................................................................................................................23 7.3 Lexical objects.....................................................................................................................................24 7.3.1 Identifiers .............................................................................................................................................24 7.3.2 Digit-string ...........................................................................................................................................25 © ISO 2005 – All rights reserved iii ISO/IEC FCD 11404 (revision) 7.3.3 Character-literal and string-literal......................................................................................................25 7.3.4 Keywords .............................................................................................................................................25 7.4 Annotations..........................................................................................................................................26 7.5 Values ...................................................................................................................................................26 7.5.1 Independent values.............................................................................................................................27 7.5.2 Dependent values................................................................................................................................28 7.6 GPD program text................................................................................................................................29