Re: problems with loopable script
Dmitry Agafonov <[email protected]>
| Newsgroups | gmane.comp.gnu.bayonne.devel |
|---|---|
| Message-ID | <[email protected]> |
David Sugar пишет: > The "pop" command removes one stack level. If you have a ^xxx handler > that catches an event, and then reruns the script or does a goto to > another script, the stack is unchanged. If you happen to be inside a > for-loop, and a ^xxx handler like that is triggered, you have an extra > stack frame that is not recovered when the script reloops or you branch. > If this happens repeatidly during the call, you will eventually use > up the runtime stack (20 entries). The pop command in the ^xxx handler > can be used to manually get rid of the extra stack frame. All this > happens automatically in ccscript3. I think this must be placed in FAQ under Q: Why things are goes wrong sometimes during long call