|
ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Writing a procedure using the procedure editor > Errors and warnings while writing a procedure > Error: Cannot call a sub-procedure recursively Error: Cannot call a sub-procedure recursively
DescriptionSub-procedures allow you to separate out chunks of procedure code, both simplifying procedures and allowing repeated tasks to be called from multiple places (or even multiple procedures). One sub-procedure can also invoke another sub-procedure. However, a sub-procedure cannot invoke itself - this will lead to the procedure being called recursively, and potentially getting into an infinite loop with no exit. See also:
© Copyright 2003-2026 Stoelting Co. All rights reserved ANY-maze help topic T0526 |