ExprFunction

Function symbols can be imported to a context by a specifying a function with the format: dynamic function(ExprContext context, List arguments) When the function symbol is found in the expression, it evaluates the arguments of the function and calls the provided function object. It is up to the function to check if the appropriate number of arguments is provided by the expression, as this can't be determined at compile time.

Constructor

new L3D.ExprFunction()

Create an ExprFunction with function pointer and required number of arguments.

Properties

A function pointer used for binding functions directly to a context rather than extending the ExprFunction class.

Required number of arguments for the function.

Methods

clone()

Clone this symbol.

eval()

Evaluate the function given the context and input arguments.