Topic: Errata in Stroustrup's new book


Author: davidr@wv.mentorg.com (David Ransier)
Date: 27 May 1994 22:05:56 GMT
Raw View
Maybe, who is the publisher?

In article <HF.94May27141116@faustino.informatik.uni-karlsruhe.de>, hf@informatik.uni-karlsruhe.de (Harald Fuchs) writes:
|> Path: hpbab33.mentorg.com!newsgw.mentorg.com!uunet!MathWorks.Com!europa.eng.gtefsd.com!emory!sol.ctr.columbia.edu!xlink.net!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!hf
|> From: hf@informatik.uni-karlsruhe.de (Harald Fuchs)
|> Newsgroups: comp.std.c++
|> Subject: Errata in Stroustrup's new book
|> Date: 27 May 1994 12:11:16 GMT
|> Organization: Telematics Dept., Karlsruhe University, Germany
|> Lines: 5
|> Message-ID: <HF.94May27141116@faustino.informatik.uni-karlsruhe.de>
|> Reply-To: hf@tk.telematik.informatik.uni-karlsruhe.de
|> NNTP-Posting-Host: faustino.telematik.informatik.uni-karlsruhe.de
|> Mime-Version: 1.0
|> Content-Type: text/plain; charset=iso-8859-1
|> Content-Transfer-Encoding: 8bit
|> X-PGP-Public-Key: finger -l hf@faustino.telematik.informatik.uni-karlsruhe.de
|> X-PGP-Fingerprint: 09 4E C4 A2 B2 C5 33 1A  79 80 5D 39 BD 9B 89 39
|> X-Face: +X9WM4fq'W~kiz#%J_T\[o"W6$r~=>bUG3}]662E7^t)&e'X!i<80mK`#8_COdRHrEG'[sT
|>   i<DN@!?oL&8,,U0L9o%^$sh*mo`nY7%uri56H_1Ka{L+`XGq7iV[1];7H"&89-;PH)TricUmwsj]AK
|>   NtAw+L&FKto;o0N88D8O:YzU
|> X-WWW-Home-Page: http://www.telematik.informatik.uni-karlsruhe.de/~hf/
|>
|> I think I found some errors in Stroustrup's new book "The Design and
|> Evolution of C++", but I'm not quite sure.  Is there an errata list
|> out there?
|> --
|> Harald Fuchs <hf@informatik.uni-karlsruhe.de>

--

+++++++++++++
David Ransier  davidr@pdx.mentorg.com      These comments are my own. I paid for
               Office: (503) 685-1528      them. I own them. They're not my
               Fax:    (503) 685-7704      employers, and you can't have them.
+++++++++++++




Author: miket@world.std.com (Michael Trachtman)
Date: Sat, 28 May 1994 00:00:01 GMT
Raw View
Harald Fuchs (hf@informatik.uni-karlsruhe.de) wrote:
: I think I found some errors in Stroustrup's new book "The Design and
: Evolution of C++", but I'm not quite sure.  Is there an errata list
: out there?
: --
: Harald Fuchs <hf@informatik.uni-karlsruhe.de>

Why don't you email them to bs@research.att.com.

I have emailed erratta to Bjarne Stroustrup in the past.
He has always been gracious in discussing them.
At least one of the errata that I pointed out had not yet been
added to the errata list, so he added it, and sent me a copy.

Also, if memory serves me correctly, there are errata of his
other books at research.att.com, which are available by ftp.
I have not checked recently if there is an eratta list for the D&E book.

Michael T.






Author: hf@informatik.uni-karlsruhe.de (Harald Fuchs)
Date: 29 May 1994 11:02:17 GMT
Raw View
In article <2s5qs4$318@hpbab.mentorg.com>, davidr@wv.mentorg.com (David Ransier) writes:
> In article <HF.94May27141116@faustino.informatik.uni-karlsruhe.de>, hf@informatik.uni-karlsruhe.de (Harald Fuchs) writes:
> |> I think I found some errors in Stroustrup's new book "The Design and
> |> Evolution of C++", but I'm not quite sure.  Is there an errata list
> |> out there?

> Maybe, who is the publisher?

Addison-Wesley. ISBN 0-201-54330-3

In article <CqHK01.IGn@world.std.com>, miket@world.std.com (Michael Trachtman) writes:

> Why don't you email them to bs@research.att.com.

I somewhat hesitate to do that.  Firstly because I think he already
gets enough Email, and secondly because I'm not quite sure about what
I found.

Especially, I need some clarification about pp. 359f:

> template <class T> class basic_string {
>   // ...
> };

> template <class T, class C = CMP<T> >
> int compare (const basic_string<T>&, const basic_string<T>&);

> typedef basic_string<char> string;

> void f (string swede1, string swede2) {
>   compare (swede1, swede2);
>   compare (swede1, swede2, LITERATE);
> }

> I pass the comparison criteria as a template parameter because
> that's a way of passing several operations without imposing a
> run-time cost.

I think this contradicts with page 351:

> void g (Array<float>& a) {
>   f<float> (a);
>   f<double> (a);
>   f<Quad> (a);
> }

Thus page 351 indicates that you specify explicit function template
arguments with angle brackets, whereas the "compare" function above
seems to use an additional function argument for that. Shouldn't page
360 read

void f (string swede1, string swede2) {
  compare (swede1, swede2);
  compare<char, LITERATE> (swede1, swede2);
}

?
--
Harald Fuchs <hf@informatik.uni-karlsruhe.de>




Author: hf@informatik.uni-karlsruhe.de (Harald Fuchs)
Date: 27 May 1994 12:11:16 GMT
Raw View
I think I found some errors in Stroustrup's new book "The Design and
Evolution of C++", but I'm not quite sure.  Is there an errata list
out there?
--
Harald Fuchs <hf@informatik.uni-karlsruhe.de>