Nested Gosubs

Kenneth Brody kenbrody at bestweb.net
Fri Oct 29 09:50:08 PDT 2004


Tim Fischer wrote:
> 
> I'm confused on the nested gosubs limit.
> 
> I have a table that has 4 nested gosubs.  Meaning:
[...]
> The documented limit of nested gosubs is "16 per table."  Does this mean I
> that I could have 4 sets of this type of code in 1 table or is it 4 current
> nested gosubs (meaning if I am 4 deep and I return out of 1, I am only using
> 3)???

(Note: as of 5.0, the limit is 64.)

The limit is on _active_ gosubs, not the number within the processing table.
So, yes, if you nest 4 deep, and return from one, you are now only 3 deep.

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody/at\spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:ThisIsASpamTrap at gmail.com>



More information about the Filepro-list mailing list