Object-Oriented Software in Ada95

Errata

Page
Number

Problem

11

The name of Wirth is spelt wrongly

12

The programming language Simula is spelt wrongly.

31

The attribute 'Size in the example program is incorrectly described as 'Bits in the textual description.

41

An error when I adding section numbers has resulted in three entries in the tables on this page being replaced by a section number.

The range of root_integer should be -2^15 .. 2^15-1
The range of root_real should be 8 digits
The range of the root type of:
new Integer range 0 .. 100 should be -2^15 .. 2^15-1

What happened was the leading numbers in these lines was replaced by a section number.

115

The grid for the game of noughts and crosses should be:
  1 2 3
  4 5 6
  7 8 9
  

I renumbered all paragraphs rather than just sections

260

The package specification for Class_building should have the following with and use clauses.

  with Ada.Text_io, Class_room, Class_room.build;
  use  Ada.Text_io, Class_room, Class_room.build;
  

A bad edit, I missed out a line, and included two lines from another file.

329

With the declaration:
type Country is (USA, FRANCE, UK, AUSTRALIA)
The value delivered by:
Country'Pos(FRANCE)
should be 1.

310-311

Though the written message says 8! is calculated the code actually calculates 7!. I updated the message but not the code.
In Figure 19.1 the last thread should have the comment Is_prime(97) and not Factorial(7)

396

The declaration of a bool type in C should be:
typedef enum { false, true } bool
and not
typedef enum false, true bool

At some point in transferring the text the {}'s where lost.

435

The package at the top of the page should be labeled Ada.Numerics.generic_elementary_functions and not Ada.command_line for some reason I pasted this package name in twice.


© M.A.Smith University of Brighton. Created April 1996 last modified April 1997.
Comments, suggestions, etc. M.A.Smith@brighton.ac.uk * [Home page]