Article View: gnu.g++.lib.bug
Article #13Minor bug in String.h
From: kha
Date: Tue, 20 Jun 1989 02:14
Date: Tue, 20 Jun 1989 02:14
14 lines
925 bytes
925 bytes
operator = should not be void functions. (The law of the least
astonishment).
The standard libraries should use return values on operators and
assignment operators should normally have the behavior described in
Kernigan & Ritchie: The C Programming Language ( second edition )
Chap. 2.10
VHMap uses a assignment in a return statement, and fails to compile
when used on strings.
To Doug: Sorry for the other copy of this message. ( In an unfinished
state.) But I hitted ^c^c to early. :-)
Knut-Haavard Aksnes.
Technical Details
Message-ID:
<8906200214.AA08799@sigyn.idt.unit.no>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!idt.unit.no!khaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!idt.unit.no!kha From: kha@idt.unit.no Newsgroups: gnu.g++.lib.bug Subject: Minor bug in String.h Message-ID: <8906200214.AA08799@sigyn.idt.unit.no> Date: 20 Jun 89 02:14:28 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 14