Article View: gnu.g++.lib.bug
Article #563possible bug in the Plex generic
From: Doug Lea
Date: Sat, 03 Feb 1990 12:54
Date: Sat, 03 Feb 1990 12:54
18 lines
1273 bytes
1273 bytes
Thanks. `fill' was mismatched in all the *Plex files. Sorry. Fixed
for next release.
> I've noticed that a lot of the classes have been sprouting `const's
> left and right. Good job! Koenig said that this was one of the
> things that no one tells you, but is almost necessary for good code.
> Someone may want to check the rest of the classes for missing `const's
> (header and code mismatch that is).
Most libg++ classes have been thoroughly const-ified. Occasionally
this creates anomolies in order to be sufficiently conservative. For
example, you cannot perform s.before("x") for a const String s, since
the resulting SubString might modify s. This is true even if you only
want to read, not change the SubString. There are several other such
cases.
-Doug
Technical Details
Message-ID:
<9002031254.AA26119@g.oswego.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!G.OSWEGO.EDU!dlReferences:
<THOTH.90Feb2095013@springs.cis.ufl.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!cs.utexas.edu!tut.cis.ohio-state.edu!G.OSWEGO.EDU!dl From: dl@G.OSWEGO.EDU (Doug Lea) Newsgroups: gnu.g++.lib.bug Subject: possible bug in the Plex generic Message-ID: <9002031254.AA26119@g.oswego.edu> Date: 3 Feb 90 12:54:40 GMT References: <THOTH.90Feb2095013@springs.cis.ufl.edu> Sender: daemon@tut.cis.ohio-state.edu Reply-To: dl@oswego.oswego.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18