Article View: comp.std.c++
Article #2369Re: class member: static name const; Legal?
From: Jason Merrill
Date: Tue, 31 Oct 1995 22:32
Date: Tue, 31 Oct 1995 22:32
18 lines
1640 bytes
1640 bytes
>>>>> Don & <bashford@scripps.edu> writes: > Thanks Jason, I've wondered about that too. If you can't mix > static and const, what way do we have of promising that a static > member function will not alter static data? If there is no > way at the moment, perhaps the standard should provide one. A more general facility is a way to specify that a particular function has no side effects; distinguishing static data members from other global data for this purpose seems pointless. Many compilers (C as well as C++) provide this as an extension, but I don't see any chance of it being standardized. Jason [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<u9loq1nv8z.fsf@yorick.cygnus.com>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<4733v8$278@stellar.comnet.com> <u9n3ainrii.fsf@yorick.cygnus.com> <BASHFORD.95Oct31105612@toad.scripps.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: jason@cygnus.com (Jason Merrill) Newsgroups: comp.std.c++ Subject: Re: class member: static name const; Legal? Date: 31 Oct 1995 22:32:29 GMT Organization: Cygnus Support, Mountain View, CA Sender: jason@cygnus.com Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <u9loq1nv8z.fsf@yorick.cygnus.com> References: <4733v8$278@stellar.comnet.com> <u9n3ainrii.fsf@yorick.cygnus.com> <BASHFORD.95Oct31105612@toad.scripps.edu> NNTP-Posting-Host: taumet.eng.sun.com Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-Nntp-Posting-Host: yorick.cygnus.com In-Reply-To: bashford@scripps.edu's message of 31 Oct 1995 19:28:08 GMT X-Newsreader: Gnus v5.0 X-Lines: 14 Content-Length: 609 Originator: clamage@taumet