← Back to team overview

ffc team mailing list archive

Re: const static double or static const double

 

On Monday 06 July 2009 13:02:18 Anders Logg wrote:
> On Mon, Jul 06, 2009 at 12:44:57PM +0200, Kristian Oelgaard wrote:
> > Hi,
> >
> > Just a minor issue. For some arrays in the generated code we use:
> >
> > const static
> >
> > others uses
> >
> > static const
> >
> > Is there a right or wrong way, if not, which one should we use (if we
> > want to be consistent in the code)?
> >
> > It's just a small change in the format, but we will probably have to
> > change the references for the regression tests.
>
> I think it should be static const:
>
> http://www.velocityreviews.com/forums/t291248-const-static-vs-static-const.
>html

From one of the last comments it says that the rule is that "static" should be 
in the beginning of a declaration.

Johan


Follow ups

References