Error Messages/41036

< Error Messages
Revision as of 20:46, 19 April 2017 by Max (talk | contribs)


Error message

 Recursive or cyclic dependency -- the definition of F depends directly or indirectly on itself.
    F - G - H - F
 If you intend for F to be recursive, check the checkbox.  Do you want to edit the Definition of F?
 [ ] Mark F as recursive
 [Yes] [No] 

Cause

When you define a User-Defined Function that depends on itself, either directly or indirectly through multiple function calls, you create a recursive or cyclic dependency. Unless you did this intentionally in order to implement a recursive function, this indicates you probably made a mistake, and this message about the cyclic dependency can assist you in finding where the mistake lies. The sequence of functions listed on the second line shows you how the dependency arises. In the example, we can see that function F calls function H, which calls function G which calls function F, creating the dependence of F on itself.

Remedies

If you intended to create a recursive function, then just check the checkbox in the error dialog. This will set the Recursive attribute for the function, so it will accept a recursive definition without error.

If you created the cyclic dependency by mistake, edit the function definition to correct it.

See Also

Comments


You are not allowed to post comments.