It sounds like you may be able to return values from your functions instead of calling them on top of each other. It is hard to understand based on what info you gave me though.
On 8/30/14, john <[email protected]> wrote: > Essentially I have a bunch of menu functions which call each other > repeatedly, every time the player selects an option. I have a function for > checking keys that is generic to all menus, as well as a function which > calls the correct menus select > options based on variables. The basic idea is that whenever the player is in > a menu, there's a global variable that keeps track of that menu's reference > number. Whenever the player presses enter on an option, a function processes > that variable and > calls the select function for the correct menu, which then passes execution > to the next menu. I believe that each menu change is calling about 5 > functions. > Sorry if my explanation is confusing; I'm having a surprising amount of > difficulty coming up with a way to explain it. > > ----- Original Message ----- > From: Aaron Baker <[email protected] > To: Gamers Discussion list <[email protected] > Date sent: Fri, 29 Aug 2014 17:53:56 -0400 > Subject: Re: [Audyssey] clear call stack in bgt > > Hi, can you explain more of what you are trying to do? > It is possible you can avoid your repeititious function calls with > loops, return values, global variables or parameters. > There is no way to increase or clear the call stack. You couldn't > clear the call stack, because then what happens if the function which > does this returns? > BGT wouldn't know what to return you to, because you've killed the call > stack. > The call stack basically records everything. > > On 8/29/14, john <[email protected]> wrote: > HI all, > As the subject suggests, I'm wondering if its possible to clear (or > increase the size of) the call stack in bgt (or any programming language, > for that matter). I'm having difficulty from keeping my projects from > continually increasing the size > of the stack, and while this would be just fine for a small program, I'm > pretty sure my major project is going to go over 10000 eventually, > possibly > regardless of how perfectly the player performs. If there's no way to do > this, are there any tips I > can get as to how to make a program continue running without increasing > the > call stack, as I'm going to have to be constantly switching between > functions, that need to be able to call each other a theoretically > infinite > number of times. > > --- > Gamers mailing list __ [email protected] > If you want to leave the list, send E-mail to > [email protected]. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/[email protected]. > If you have any questions or concerns regarding the management of the > list, > please send E-mail to [email protected]. > > > --- > Gamers mailing list __ [email protected] > If you want to leave the list, send E-mail to > [email protected]. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/[email protected]. > If you have any questions or concerns regarding the management of the list, > please send E-mail to [email protected]. > > --- > Gamers mailing list __ [email protected] > If you want to leave the list, send E-mail to > [email protected]. > You can make changes or update your subscription via the web, at > http://audyssey.org/mailman/listinfo/gamers_audyssey.org. > All messages are archived and can be searched and read at > http://www.mail-archive.com/[email protected]. > If you have any questions or concerns regarding the management of the list, > please send E-mail to [email protected]. > --- Gamers mailing list __ [email protected] If you want to leave the list, send E-mail to [email protected]. You can make changes or update your subscription via the web, at http://audyssey.org/mailman/listinfo/gamers_audyssey.org. All messages are archived and can be searched and read at http://www.mail-archive.com/[email protected]. If you have any questions or concerns regarding the management of the list, please send E-mail to [email protected].
