[Contents] · [Home] · [Mail]

SALIERI Language - return

Type:
return: () -> ()
return: object -> ()

Call syntax:
return()
return(returnValue)

Description:
When called inside a function, return ends the execution of that function and, if specified, causes returnValue to be returned as the function's value.

Example:
> f:= FUNC(0,write("inside f); return(leaving f"); write("never reached"););
> f();
inside f
Result = "leaving f"

See also: FUNC, MACRO, abort.


[Contents] · [Home] · [Mail]
© sic!systems, page frame designed by hh; this page has been automatically generated from the SALIERI Documentation Database.