From bug-octave-request at bevo dot che dot wisc dot edu Fri Jan 28 03:11:28 2000 Subject: eval("return") fails From: "John W. Eaton" To: Rolf Fabian Cc: "'bug-octave'" Date: Fri, 28 Jan 2000 03:11:18 -0600 (CST) On 18-Jun-1999, Rolf Fabian wrote: | #example function to demonstrate bug | function y=test(x) | eval("y=1/x;","y=[]; return; y='HI' "); | end | | any vector input should return y=[] but we get for e.g. | y=test(1:3) | |- always y=HI #V2.0.13 (cygwin) | | I checked 'test'-function also under V2.1.14 experimental OS/2 ... | .. failed too! This problem is fixed in my current development sources: octave:8> function y=test(x) > eval("y=1/x;","y=[]; return; y='HI' "); > end octave:9> test (1:3) ans = [](0x0) The fix should appear in the CVS archive soon. Thanks, jwe ----------------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.che.wisc.edu/octave/octave.html How to fund new projects: http://www.che.wisc.edu/octave/funding.html Subscription information: http://www.che.wisc.edu/octave/archive.html -----------------------------------------------------------------------