[Contents] · [Home] · [Mail]

SALIERI Language - curFunc

Type:
curFunc: () -> string

Call syntax:
curFunc()

Description:
curFunc returns the name of the function which it was called from as a string. If it is called from the command-line or from level 0 of a SALIERI program file, an empty string is returned. Together with curLine, curFunc can be used for monitoring the execution of SALIERI programs or for generating messages when implementing user-specific exception handling.

Example:
> f:= FUNC(0,`write("called from ", curFunc());´);
> f();
called from f
> curFunc();
Result = ""

See also: curLine, FUNC.


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