next up previous

12.7.8 Determining the Restrictions for a Function

The getfunctionrestrictions function can be used to gain access to the restriction string associated with a CLIPS or user defined function. The restriction string contains information on the number and types of arguments that a function expects. See section 3.1 of the Advanced Programming Guide for the meaning of the characters which compose the restriction string.

Syntax

(get-function-restrictions <function-name>)

Example

CLIPS> (get-function-restrictions +)
"2*n"
CLIPS>


next up previous