Re: goto: it's conceded
- Posted by Jason Gade <jaygade at yah?o.co?> Jun 03, 2008
- 676 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 Hmm. Not sure where the 1K and the 64k numbers came from, but I don't think that Euphoria's loops, at least in the interpreter, rely upon the machine stack. So I choose what's behind door number three -- the total process memory. I thought I had seen the 262144 number in some build files, but I couldn't find it when researching your answer. I definitely saw the numbers 49152 and 131072 in there though... (grep -i "stack" *.* in the source directory). -- A complex system that works is invariably found to have evolved from a simple system that works. --John Gall's 15th law of Systemantics. "Premature optimization is the root of all evil in programming." --C.A.R. Hoare j.