Bug: Function Handles as Default Arguments
John W. Eaton
jwe at bevo.che.wisc.edu
Mon May 19 14:49:30 CDT 2008
On 18-May-2008, Bill Denney wrote:
| Hi,
|
| I was working on some code tonight where I was wanting to use some
| default arguments, and I had some trouble with it, so I tried to find
| some examples. I went looking into the tests directory, and I noticed
| that there were no tests for the default arguments, so I put some in
| (and modified the tests that were already there so that they would work
| with a normal test call, i.e. test test_args).
|
| When I was putting them in, I found that Octave doesn't like function
| handles as default arguments. It gives a different error for normal
| function handles and anonymous handles.
|
| Attached is a changeset that demonstrates these errors (and changes the
| form of test_args to be testable from the command line).
I applied it.
Thanks,
jwe
More information about the Bug-octave
mailing list