3 ms·
There's an error in Rule 52. They specifically say variables shouldnt have any capital letters but their example does.
by kfury 14y ago
There's an error in Rule 52. They specifically say variables shouldnt have any capital letters but their example does.
- dododo 14y agoif 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.
- gte910h 14y agoNo it isn't, it's an enum type.
- JL2010 14y agoJust 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.
- kfury 14y agoNevermind. :-)
- reledi 14y agoPerhaps 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.