[Contents] · [Home] · [Mail]

SALIERI Language - curLine

Type:
curLine: () -> integer

Call syntax:
curLine()

Description:
curLine returns the line number within the function it was called. The lines are counted starting at the line containing the opening block-quote of the function body (line 1). If curLine is called from the command-line or from level 0 of a SALIERI program file, 0 is returned. Together with curFunc, curLine 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(), " line ", curLine());´);
> f();
called from f, line 1
> curLine();
Result = 0

See also: curFunc, FUNC.


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