[Contents] · [Home] · [Mail]

SALIERI Language - internal function (Object Type)

Objects of type internal function represent built-in functions of SALIERI. This object type is required to make handling built-in functions consistent with handling other functional objects, like user-defined functions, macros, or blocks.

Internal function objects are automatically created whenever a built-in function is used in a context different from executing it; they can be also explicitely created using the constructor IFUNC. The functional objects thus obtained can be assigned, copied, modified or deleted just as objects of any other type in SALIERI. Also, the apply command can be used to execute internal function objects.

Example:
> write
Result= IFUNC("write")
> w := write;
> w
Result= IFUNC("write")
> w(1,2,3)
123
> apply(w, 1,2,3)
123
> apply(w, w)
IFUNC("write")

See also: IFUNC, apply, return, function (Object Type), User-defined Functions, Built-in Functions.


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