← Back to team overview

kicad-developers team mailing list archive

Re: Using compiler specific c++ extensions

 

There is a very good discussion of this here
http://stackoverflow.com/questions/370283/why-cant-i-have-a-non-integral-sta
tic-const-member-in-a-class


-----Original Message-----
From: kicad-developers-bounces+crash=triad.rr.com@xxxxxxxxxxxxxxxxxxx
[mailto:kicad-developers-bounces+crash=triad.rr.com@xxxxxxxxxxxxxxxxxxx] On
Behalf Of Lorenzo Marcantonio
Sent: Sunday, July 22, 2012 1:45 AM
To: Kicad Developers
Subject: Re: [Kicad-developers] Using compiler specific c++ extensions

On Sat, Jul 21, 2012 at 06:44:27PM -0500, Dick Hollenbeck wrote:
> I think we should accept a patch from you. This is not Java, it is 
> C++. C++ cannot do this, Java can.
> 
> It is really that simple. GCC maintainers probably know Java, but that 
> does not give them a license to bend the language on their own, 
> counter-current to the rest of the C++ language supporters.

Fully agree with that... but a) I don't get why a POD like a float couldn't
be a const object (like an int) and b) why gcc doesn't give a warning; maybe
because it's an 'harmless' extension...

I'm really curious to see the rationale for that ISO decision...

--
Lorenzo Marcantonio
Logos Srl

_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp



Follow ups

References