From George White · 1996-04-10 13:15 · #73695 in EMULATE
In reply to Help! Wizard needed! by Chris Neale
Hi Chris,
You wrote to Jonathan de Boyne Pollard:
CN>JDBP> > Why should it be int?
CN>JDBP>CN>
CN>JDBP> Because that's what the language specification says that it should be
CN>Woa! But void works fine - in compiled and otherwise modes. Are we
CN>talking Turbo C++ or C here?
It works in many compilers, but it is an anacronism (from K&R standard
C) and is not as per the C++ (or even the ANSI C) language specification
(ref ARM 3.4).
CN>JDBP> Then the book (whatever book it is) is wrong.
CN>Doubt it!
It is! (and most of them are :-( ).
Jonathan is fairly hot on C++ language specification details, he's
involved in the BSI C++ specification committee.
George
* SLMR 2.1a * if (pot.coffee == EMPTY) { programmer->brain = OFF };
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)