Break, continue, return

From Erights

(Difference between revisions)
Jump to: navigation, search

Latest revision as of 21:54, 14 May 2009

The three operators break, continue, and return (collectively ExitExpr) are all very simple syntactic sugar; they exist solely so that writing break instead of break() does not surprisingly do nothing (as it would if break, continue, and return were just conventional names for functions).

break
break expr

expands to

__break()
__break(expr)

and correspondingly for continue and return.

Personal tools
more tools