Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rule 16.4
#3
Alright, so it seems I have misunderstood rule 8.3. I thought it said that the declaration and definition should be identical. But it only states that their parameter and return types should be identical, without mentioning the identifiers.

That doesn't make the situation better though. This means that in chapter 8 there is a rule stating that the types should be identical, and in chapter 16 there is a rule stating that the identifiers should be identical. It seems to be unecessary fragmentation of the document.

Why not simply make one single rule?

Rule 8.x (required):
\"The function prototype shall be identical to the function definition by the letter, with the exception of the function's linkage.\"

Replaces rule 8.3, rule 16.4 and half of rule 8.4.


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)