Too many nested GOSUBS

Jay R. Ashworth jra at baylink.com
Fri Dec 29 11:57:39 PST 2006


On Wed, Dec 20, 2006 at 02:07:03PM -0500, Fairlight wrote:
> Does the gosub counter get reset at the start of each new record, or is
> it continuous throughout the run of *clerk or *report no matter how many
> records you switch between?

To be precise: what's happening is that when you do a GOSUB, filepro
adds a 'frame' to a stack, which contains information about where to go
back to when you hit return.  That stack was expanded to permit 64
active frames in 5.0.  Certain actions discard the current contents of
the stack, thus saving you from the effects of bugs which leave
unplanned frames on the stack.

WISHLIST: @GD - Gosub Stack Depth

and, maybe, display it in the debugger, too?

Cheers,
-- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Designer                          Baylink                             RFC 2100
Ashworth & Associates        The Things I Think                        '87 e24
St Petersburg FL USA      http://baylink.pitas.com             +1 727 647 1274


More information about the Filepro-list mailing list