Re: Depth limit to nested for loops
Fernando Bauer wrote:
>
> > > Kat wrote:
> > >
> > > > What is the depth limit to nested for/while loops in Eu?
> I tested two cases with exwc 3.0.2 (WinXP SP2):
>
> a) At top-level:
> Result:
> Depth: 2696 A stack overflow was encountered at address 7c90edde
> Maximum depth of nested 'for':2695
> Return value at system_exec:-1073741819
>
> b) Inside a procedure:
> Result:
> Depth: 2784 2783
> Maximum depth of nested 'for':2783
> Return value at system_exec:-1073741819
>
> In this case (depth=2784), the program doesn't show error message, but,
> strangely,
> it doesn't show the value of 'a'.
If you're using a compiled interpreter, then the interpretation will cause
a stack overflow, since it will basically call Statement_list() recursively.
Matt
|
Not Categorized, Please Help
|
|