🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by Mark W. Eichin Wed, 15 Mar 1989 23:58
libg++1.34 stream class doesn't conform to The Book
#474
Author: Mark W. Eichin
Date: Wed, 15 Mar 1989 23:58
17 lines
1294 bytes
I've discovered two significant incompatibilities between the libg++
stream class and the description in Stroustrup's book.
	1) istream.get(char*,int,char) is of type File, rather than
type istream. This has the unpleasant effect of making a following >>
not function, but not be flagged as an error.
	2) operator>>(char&) doesn't ignore whitespace, yet this
behavior is explicit in the description in the book (in fact, there is
even a code sample, of how to define this operator...) If I wanted to
read whitespace, I would use istream.get(char&).

I'd also like to note that the Regex class is missing any way of using
the registers (\(\) pairs) even though the code is there. In fact,
both libg++ and OOPS use slightly different version of the GNUemacs
regexp code anyway... having the superset here would be nice.

				Mark Eichin
				<eichin@athena.mit.edu>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads