Re: goto: it's conceded
- Posted by CChris <christian.cuvier at agri??lture.gouv.fr> Jun 03, 2008
- 696 views
Kat wrote: > > Derek Parnell wrote: > > > > Kat wrote: > > > > > What is the depth limit to nested for/while loops in Eu? > > > > I think it is only limited by available memory. There is no hard-coded > > limit. > > When you say "available memory", would that be 1Kbytes local stack space per > procedure, or 64k global stack space, or the 2 gigabytes the OS will let the > program have? Or somewhere in between that's undefined? > > Yes, real world, i hit TurboPascal's stack limit with nested loops. > > Kat The parser creates a few sequences to keep track of loops and blocks. The length of such sequences is the number of currently active loops/blocks. If that number becomes dangerously close to 1.0e8, memory may start being scarce on an oldish machine. CChris