home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
- Errata for Changes to Chapter 12 version 21
-
-
-
-
- 12.1 Generic Declarations (paragraph 13)12.1 Generic Declarations (paragraph 13)12.1 Generic Declarations (paragraph 13)
-
-
- References:___________ access type definition 3.8, array type definition 3.6, attribute 4.1.4, constraint
- 3.3, declaration 3.1, designator 6.1, elaboration has no other effect 3.1, entity 3.1, expression
- 4.4, function 6.5, generic instantiation 12.3, identifier 2.3, identifier list 3.2, instance 12.3,
- name 4.1, object 3.2, overloading 6.6 8.7, package specification 7.1, parameter of a subprogram
- 6.2, private type definition 7.4, procedure 6.1, reserved word 2.9, static expression 4.9,
- subprogram 6, subprogram specification 6.1, subtype indication 3.3.2, type 3.3, type mark 3.3.2
-
-
-
-
- 12.1.1 Generic Formal Objects (paragraph 6)12.1.1 Generic Formal Objects (paragraph 6)12.1.1 Generic Formal Objects (paragraph 6)
-
-
- References:___________ anonymous type 3.3.1, assignment 5.2, base type 3.3, constant declaration 3.2,
- constraint 3.3, declaration 3.1, generic actual parameter 12.3, generic formal object 12.1,
- generic formal parameter 12.1, generic instantiation 12.3, generic parameter declaration 12.1,
- identifier 2.3, limited type 7.4.4, matching generic actual parameter 12.3, mode 6.1, name 4.1,
- object 3.2, simple name 4.1, subtype 3.3, type declaration 3.3, type mark 3.3.2, variable 3.2.1
-
-
-
-
- 12.1.2 (paragraph 17)12.1.2 (paragraph 17)12.1.2 (paragraph 17)
-
-
- References:___________ access type definition 3.8, allocator 4.8, array type definition 3.6, assignment 5.2,
- body of a generic unit 12.2, class of type 3.3, constraint 3.3, declaration 3.1, declaration of a
- generic unit 12.1, discrete range 3.6, discrete type 3.5, discriminant part 3.7.1, enumeration
- type 3.5.1, equality 4.5.2, fixed point type 3.5.9, floating point type 3.5.7, generic actual type
- 12.3, generic formal part 12.1, generic formal subprogram 12.1.3, generic formal type 12.1,
- generic parameter declaration 12.1, generic type definition 12.1, indexed component 4.1.1,
- inequality 4.5.2, instantiation 12.3, integer type 3.5.4, limited private type 7.4.4, matching
- generic actual type 12.3.2 12.3.3 12.3.4 12.3.5, multiplying operator 4.5 4.5.5, operation 3.3,
- operator 4.5, parent type 3.4, private type definition 7.4, scalar type 3.5, slice 4.1.2, standard
- package 8.6 C, subtype indication 3.3.2, type mark 3.3.2, universal_fixed 3.5.9
-
-
-
- 12.1.3 Generic Formal Subprograms (paragraph 7)12.1.3 Generic Formal Subprograms (paragraph 7)12.1.3 Generic Formal Subprograms (paragraph 7)
-
-
- References:___________ anonymous type 3.3.1, base type 3.3, box delimiter 12.1.2, constraint 3.3, designator
- 6.1, generic actual parameter 12.3, generic formal function 12.1, generic formal subprogram 12.1,
- generic instantiation 12.3, generic parameter declaration 12.1, identifier 2.3, matching generic
- actual subprogram 12.3.6, operator symbol 6.1, parameter of a subprogram 6.2, renaming declaration
- 8.5, reserved word 2.9, scope 8.2, subprogram 6, subprogram specification 6.1, subtype 3.3.2, type
- 3.3, type mark 3.3.2
-
-
-
-
-
-
- -1 Generic Formal Subprograms (paragraph 7) 12.1.3
-
-
-
-
- 12.2 Generic Bodies (paragraph 5)12.2 Generic Bodies (paragraph 5)12.2 Generic Bodies (paragraph 5)
-
-
- Example of a generic function body:___________________________________
-
-
-
-
- 12.3 Generic Instantiation (paragraph 3)12.3 Generic Instantiation (paragraph 3)12.3 Generic Instantiation (paragraph 3)
-
-
- An explicit generic actual parameter must be supplied for each generic formal parameter, unless
- the corresponding generic parameter declaration specifies that a default can be used. Generic
- associations can be either positional or named in the same manner as parameter associations of
- subprogram calls (see 6.4). If two or more formal subprograms have the same designator, then
- named associations are not allowed for the corresponding generic parameters.
-
-
-
- 12.3.6 Matching Rules for Formal Subprograms (paragraph 5)12.3.6 Matching Rules for Formal Subprograms (paragraph 5)12.3.6 Matching Rules for Formal Subprograms (paragraph 5)
-
-
- The matching rules for formal subprograms state requirements that are similar to those applying to
- subprogram renaming declarations (see 8.5). In particular, the name of a parameter of the formal
- subprogram need not be the same as that of the corresponding parameter of the actual subprogram;
- similarly, for these parameters, default expressions need not correspond.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 12.3.6 Matching Rules for Formal Subprograms (paragraph 5) -2
-