static const double pi = 3.1415;

Gabriel Dos Reis gdr@integrable-solutions.net
Wed Feb 19 16:21:00 GMT 2003


Mike Stump <mstump@apple.com> writes:

| On Tuesday, February 18, 2003, at 11:33 PM, Gabriel Dos Reis wrote:
| > I agree in principle; I'm just trying to find a middle-solution.
| > Maybe there is none ;-)
| 
| I'd claim the standard is wrong, and we shouldn't be afraid to fix it.
| Isn't the 5year coming up?!  By having real world experience, we do,
| with the extension, we strengthen the case for it.
| 
| Personally, I don't find
| 
| int i = 1;
| 
| to be substantially different from:
| 
| double i = 1;
| 
| :-(  As far as extensions go, I've seen worse.

Yeah, but I'm not sure that is a convincing argument for this
particular one.

I do not believe that teh issue is just as simple as you're stating.

The in-class initialisation thingy is much subtile (at least I
perceive it as such) that a mere replacement of int with double.

The in-class initialisation is not a definition, it is a conceptual
"#define" but at translation phase 7:  You give a symbolic name to a
manifest (compile-time) constant.  One of the issue is: What does that
mean for something whose semantics have intrincate dependency on the
executing environment?  Well, I'm not sure I would have time to follow
this opening debate.  At any rate, I was just finding an acceptable
path to 3.4 -- this is not a feature I will spend lot of time for and
I feel it would consume time to get "right". 

-- Gaby



More information about the Gcc mailing list