From bug-octave-request at bevo dot che dot wisc dot edu Tue Dec 16 09:59:48 2003 Subject: type renders [fn(value)] ambiguously From: Paul Kienzle To: bug-octave at bevo dot che dot wisc dot edu Date: Tue, 16 Dec 2003 10:58:58 -0500 octave-2.1.52, Debian: octave:1> function y=f, y=[sin(2)]; end octave:2> type f f is a user-defined function: function y = f () y = [sin (2)]; endfunction If you then go on to say edit('f'), edit will use 'type' to get the current function definition and store it in the file. When running octave with the traditional flags set, f will then give the following error: octave:11> f error: sin: too few arguments error: evaluating assignment expression near line 25, column 5 error: called from `f' in file `/home/pkienzle/octave/f.m' Paul Kienzle pkienzle at users dot sf dot net ------------------------------------------------------------- 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 -------------------------------------------------------------