This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: static const double pi = 3.1415;
On Tue, Feb 18, 2003 at 09:44:32AM -0800, Joe Buck wrote:
> On Tue, Feb 18, 2003 at 08:05:24AM -0800, Mark Mitchell wrote:
> > I assume that by "it" you mean initializing static floating-point data
> > members in-class.
> >
> > I still think that in some sense there's nothing to deprecate; this was a
> > very unofficial extension.
>
> Speaking as someone who used g++ since 1990: initialization of const members
> in-class was always there. ISO C++ picked up the ability to initialize
> static integral members in-class from g++, in ARM C++ you had to use an
> enum.
>
> Given this very long history I think that it needs to be deprecated
> and announced.
I agree, but would still like to see -fpermissive allow this. But I don't
feel strongly about it.
Phil
--
I would therefore like to posit that computing's central challenge, viz. "How
not to make a mess of it," has /not/ been met.
- Edsger Dijkstra, 1930-2002