|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#41
|
||||
|
||||
|
Re: functions for auto
it doesn't really matter. "break" exits the loop while "return" exits the method. if you have code after the loop which you want to run than "break" should be used. if you want to terminate the method entirely and skip methods after the loop (or if you have no loops), than "return" should be used. if your entirely in a loop with no code after the loop, it doesn't matter.
Though, for uniformity sake, they should all probably be the same. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|