« Return to Thread: Problem with recursive function handles with new symbol table code

Problem with recursive function handles with new symbol table code

by John W. Eaton :: Rate this Message:

Reply to Author | View in Thread

On  7-May-2008, David Bateman wrote:

| The function
|
| function y = testrecursionfunc (f, x, n)
|   functions(f);
|
|   if (nargin < 3)
|     n = 0;
|   endif
|   if (n > 2)
|     y = f (x);
|   else
|     n++;
|     y = testrecursionfunc (@(x) f(2*x), x, n);
|   endif
| endfunction
|
| demonstrates an issue with the function handles with the new symbol
| table code. With 3.0.1 this returns

OK, I see the problem, but I don't think the fix is trivial and I'm
busy at the moment so it may take a few days for me to find the time
to fix it properly.

jwe
_______________________________________________
Bug-octave mailing list
Bug-octave@...
https://www.cae.wisc.edu/mailman/listinfo/bug-octave

 « Return to Thread: Problem with recursive function handles with new symbol table code