static const double pi = 3.1415;

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Feb 17 15:02:00 GMT 2003


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



More information about the Gcc mailing list