home *** CD-ROM | disk | FTP | other *** search
/ Programmer's ROM - The Computer Language Library / programmersrom.iso / ada / lrm / chap01.err < prev    next >
Encoding:
Text File  |  1988-05-03  |  3.8 KB  |  134 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                             Errata for changes to Chapter 1 version 21
  7.  
  8.  
  9.  
  10. 1.1.2  Conformity of an Implementation with the Standard (paragraph 2)1.1.2  Conformity of an Implementation with the Standard (paragraph 2)1.1.2  Conformity of an Implementation with the Standard (paragraph 2)
  11.  
  12.  
  13.  
  14. (a)  Correctly translates and executes legal program units written in Ada, provided that they  are
  15.      not so large as to exceed the capacity of the implementation.
  16.  
  17.  
  18.  
  19.  
  20. 1.1.2  Conformity of An Implementation with the Standard (paragraph 4)1.1.2  Conformity of An Implementation with the Standard (paragraph 4)1.1.2  Conformity of An Implementation with the Standard (paragraph 4)
  21.  
  22.  
  23.  
  24. (c)  Rejects all program units that contain errors whose detection is required by the standard.
  25.  
  26.  
  27.  
  28. 1.4  Language Summary (paragraph 4 5)1.4  Language Summary (paragraph 4 5)1.4  Language Summary (paragraph 4 5)
  29.  
  30.  
  31. Program_______ Units_____
  32.  
  33. A  subprogram  is the basic unit for expressing an algorithm.  There are two kinds of subprograms:
  34. procedures and functions.  A procedure is the means of invoking a series of actions.  For example,
  35. it may read data, update variables, or produce some output.  It may have parameters, to provide  a
  36. controlled means of passing information between the procedure and the point of call.
  37.  
  38.  
  39.  
  40. 1.4  Language Summary (paragraph 15)1.4  Language Summary (paragraph 15)1.4  Language Summary (paragraph 15)
  41.  
  42.  
  43. The  loop  statement  provides  the  basic  iterative mechanism in the language.  A loop statement
  44. specifies that a sequence of statements is to be executed repeatedly as directed by  an  iteration
  45. scheme, or until an exit statement is encountered.
  46.  
  47.  
  48.  
  49. 1.4  Language Summary (paragraph 29)1.4  Language Summary (paragraph 29)1.4  Language Summary (paragraph 29)
  50.  
  51.  
  52. Representation  clauses  can  be  used  to  specify  the  mapping between types and features of an
  53. underlying machine.  For example, the user can specify that  objects  of  a  given  type  must  be
  54. represented  with a given number of bits, or that the components of a record are to be represented
  55. using a given storage layout.  Other features allow the controlled use of low level,  nonportable,
  56. or implementation-dependent aspects, including the direct insertion of machine code.
  57.  
  58.  
  59.  
  60.  
  61. 1.6  Classification of Errors (paragraphs 6 7)1.6  Classification of Errors (paragraphs 6 7)1.6  Classification of Errors (paragraphs 6 7)
  62.  
  63.  
  64.  
  65.  
  66.  
  67. -1                                                             Language Summary (paragraph 29) 1.4
  68.  
  69.  
  70.  
  71.  
  72.  
  73. (c)  Erroneous execution.
  74.  
  75.      The  language  rules specify certain rules to be obeyed by Ada programs, although there is no
  76.      requirement on Ada compilers to provide either a compilation-time or a run-time detection  of
  77.      the  violation  of  such  rules.  The errors of this category are indicated by the use of the
  78.      word erroneous_________ to qualify the execution of  the  corresponding  constructs.   The  effect  of
  79.      erroneous execution is unpredictable.
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133. 1.6 Classification of Errors (paragraphs 6 7)                                                   -2
  134.