News for hackers. Stuff that matters.
Re:F-35 Joint Strike Fighter Coding Standard Documentation by kfury on Sunday May 13, 2012 @12:09PM (#3967347)
There's an error in Rule 52. They specifically say variables shouldnt have any capital letters but their example does.
Re:F-35 Joint Strike Fighter Coding Standard Documentation by dododo on Sunday May 13, 2012 @12:22PM (#3967380)
if you're talking about this example:

  const   uint16    max_pressure = 100; 
  enum  Switch_position  {up, down};
``Switch_position'' is not the name of a variable, but an enum type.
Re:F-35 Joint Strike Fighter Coding Standard Documentation by JL2010 on Sunday May 13, 2012 @12:40PM (#3967437)
Just to add to what was already said, the doc said for enumerator values - which are indeed lower case in the example. Not a blanket statement for all variables.
Re:F-35 Joint Strike Fighter Coding Standard Documentation by gte910h on Sunday May 13, 2012 @12:22PM (#3967381)
No it isn't, it's an enum type.
Re:F-35 Joint Strike Fighter Coding Standard Documentation by reledi on Sunday May 13, 2012 @04:29PM (#3968184)
Perhaps I found an error.

AV Rule 69 says to use `const` by default on member functions. Yet in some examples (e.g. AV Rule 122 in Appendix A) they don't use the `const` keyword when they can.

Re:F-35 Joint Strike Fighter Coding Standard Documentation by kfury on Sunday May 13, 2012 @03:53PM (#3968067)
Nevermind. :-)