From bug-octave-request at bevo dot che dot wisc dot edu Mon Jan 22 22:22:02 2001 Subject: feval fails with all_va_args From: "John W. Eaton" To: Paul Kienzle Cc: bug-octave at bevo dot che dot wisc dot edu Date: Mon, 22 Jan 2001 22:22:00 -0600 (CST) On 22-Jan-2001, Paul Kienzle wrote: | Bug report for Octave 2.1.31 configured for %OCTAVE_CANONICAL_HOST_TYPE% | | Description: | ----------- | | I'm getting a fatal error when calling a script which uses all_va_args | from feval. The same script runs correctly in Octave 2.0.16.91. | | | Repeat-By: | --------- | | The script fail.m: | n=200; k=8; | x=rand(n,k); y=rand(n,1); parm = rand(k+1,1); | function a = test(b,x1,x2), a=b; end | function w = solve(fcn, q, ...), w = feval(fcn, q, all_va_args); end | solve('test', parm, y, x) This seems to work for me with the current sources: octave:1> n=200; k=8; octave:2> x=rand(n,k); y=rand(n,1); parm = rand(k+1,1); octave:3> function a = test(b,x1,x2), a=b; end octave:4> function w = solve(fcn, q, ...), w = feval(fcn, q, all_va_args); end octave:5> solve('test', parm, y, x) ans = 0.675836 0.667595 0.109955 0.316936 0.829843 0.088464 0.022962 0.796247 0.145040 so I think the problem has already been fixed. jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------