Break, continue, return

From Erights

Revision as of 21:54, 14 May 2009 by Kevin Reid (Talk)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

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