5.4.2.18 Exit Function Statement

exit-function-statement = "Exit" "Function" 

Static Semantics.

An <exit-function-statement> MUST be lexically contained inside the <procedure-body> of a <function-declaration>.

 

Runtime Semantics.

§ If the <statement-block> causes execution of an <exit-function-statement>, execution of the procedure and of this statement immediately completes. No other statements following the <exit-function-statement> in the procedure are executed.