Back Forward Function rules
Completing the New or Save As form

About Function rules

Create a library rule before creating functions for the library. A function rule has two key parts:

Field

Description

Type

Select Function from the Technical class.

Library Name

SmartPromptSelect the name of an existing library rule in the RuleSet that is also to contain this function.

Function Name

Enter a name for a function. Begin the name with a letter and use only letters and digits. The name must be a valid identifier; see Entering identifiers.

Overloading functions

Advanced You can choose a function name that already exists in that library (or other libraries of that name), if the type, order, and number of the new function's parameters are not the same as the type, order, and number of the existing function's parameters. The function name and parameter types together are known as the signature.

To overload a function, open the original function and use the Save As toolbar button (Save As...). You can't use the New toolbar tool (New) for this.

If one function has multiple signatures, the system generates a hash function of the parameter types to distinguish them internally; this can result in very long function names. When selecting a function, you can generally choose the one with the simpler name.

For general information about the New form, see Completing the new rule dialog box. For general information on the Save As form, see How to enter rule keys using Save As.

Internal key format

To support function name overloading, the internal format of the function rule key incorporates the parameter names, order, and types.

Rule resolution

When searching for function rules, the system filters candidate rules based on a requestor's RuleSet list of RuleSets and versions.

Time-qualified and circumstance-qualified rule resolution features are not available for function rules. The class hierarchy is not searched.

zzz About Function rules