Subroutine nesting

More
3 years 7 months ago #266506 by GeneRF
Subroutine nesting was created by GeneRF
I have been using LinuxCNC for several years, quite successfully, but I have not used subroutines. I now want to do so.

Reading the documentation I have come across a curious statement saying:
Code:
Subroutine bodies may not be nested. They may only be called after they are defined. They may be called from other functions, and may call themselves recursively if it makes sense to do so. The maximum subroutine nesting level is 10.

I am current using version 2.8.4, but this same statement has been included in many versions of the documentation.

I may be misinterpreting the meaning of "bodies", but this statement appears to be self-contradictory.

Any enlightenment would be welcome.

Gene

Please Log in to join the conversation.

More
3 years 7 months ago #266542 by tommylight
Replied by tommylight on topic Subroutine nesting
Spammer booted.

Please Log in to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum