Problem with recursive function handles with new symbol table code

John W. Eaton jwe at bevo.che.wisc.edu
Wed May 7 11:42:31 CDT 2008


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


More information about the Bug-octave mailing list