Article View: comp.std.c++
Article #2387Re: class member: static name const; Legal?
From: Ken Walter
Date: Wed, 01 Nov 1995 22:02
Date: Wed, 01 Nov 1995 22:02
35 lines
2169 bytes
2169 bytes
In message <u9loq1nv8z.fsf@yorick.cygnus.com> - jason@cygnus.com (Jason Merrill) writes: :> :>>>>>> 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. Why wouldn't it mean that it doesn't modify any of the static data members? Ken Walter * All the above is hearsay and the opinion of nobody in particular Microsoft Network, or any service owned in full or in part by Microsoft, is prohibited from redistributing this work in any form, in whole or in part. Copyright, Kenneth G. Walter, 1995. License to distribute this post is available to Microsoft for $1,000 US per instance. Posting without permission constitutes an agreement to these terms. Please send notices of violation to solution@gate.net and postmaster@microsoft.com --- [ 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:
<478cad$1k9i@news.gate.net>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<4733v8$278@stellar.comnet.com> <u9n3ainrii.fsf@yorick.cygnus.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 01 Nov 95 22:02:05 GMT Approved: fjh@cs.mu.oz.au From: solution@gate.net (Ken Walter) Newsgroups: comp.std.c++ Subject: Re: class member: static name const; Legal? X-Original-Date: 1 Nov 1995 17:55:25 GMT Organization: Solution Technology Message-ID: <478cad$1k9i@news.gate.net> References: <4733v8$278@stellar.comnet.com> <u9n3ainrii.fsf@yorick.cygnus.com> X-Newsreader: NeoLogic News for OS/2 [version: 4.2] X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMJfu5eEDnX0m9pzZAQHAWgF+J5MX70a+5RQUQz4pb/UoxDsbIOn3fGOz lJQeysO2h9WwbTEEeNeyAQdgYgYJnBYY =lsA9