This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: static const double pi = 3.1415;
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Mike Stump <mrs at apple dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 17 Feb 2003 08:31:55 +0100
- Subject: Re: static const double pi = 3.1415;
- Organization: Integrable Solutions
- References: <76F1F28C-4143-11D7-8300-003065BDF310@apple.com>
Mike Stump <mrs@apple.com> writes:
[...]
| Remind me, why was it really important to not let people use doubles?
This is an endless debate and I don't believe we'll have the answer
this time. However, I would suggest we issue an unconditional pedwarn
for 3.3.0 and remove that extension (was it ever documented?) in the
release after.
| class A {
| static const double pi = 3.1415;
| } a;
|
| This is taken from user code, Finder_FE. :-(
Well, there are lots of broken user codes around :-/
-- Gaby