Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rationale for no goto, continue but allow break
#1
I know this should have been brought up before, but in reviewing MISRA-2 this passed me by.
Being pedantic, why has the rule on break (14.6) been relaxed and not 14.5 (or 14.4)?
A break in a loop is just a goto!
I have no problem with it, it just smacks of inconsistency.
<r>Niall Cooling CEng<br/>
Feabhas Limited<br/>
<URL url="http://www.feabhas.com">http://www.feabhas.com</URL></r>


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)